protected virtual void Dispose(bool cleanManagedResources) { if (cleanManagedResources) { TextureProvider.Dispose(); DisposeMusic(); SDL_mixer.Mix_Quit(); SDL.SDL_DestroyRenderer(WRenderer); SDL.SDL_DestroyWindow(Window); SDL.SDL_Quit(); } }
public void Dispose() { provider.Dispose(); RenderTexture.Release(); }