public void ChangeBackend(GraphicsBackend graphicsBackend) { Sdl2Window contextWindow = scene.ContextWindow; scene.Dispose(); createScene(graphicsBackend, contextWindow); }
/// <summary> /// Lose all renderable resources for this label. /// </summary> public void Dispose(int label) { Renderable renderable = GetRenderable(label); if (renderable != null) { renderable.Dispose(); RemoveRenderable(label); } }
public virtual void Dispose() { rObj.Dispose(); sp.Dispose(); }