Exemple #1
0
        public void ChangeBackend(GraphicsBackend graphicsBackend)
        {
            Sdl2Window contextWindow = scene.ContextWindow;

            scene.Dispose();
            createScene(graphicsBackend, contextWindow);
        }
Exemple #2
0
            /// <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);
                }
            }
Exemple #3
0
 public virtual void Dispose()
 {
     rObj.Dispose();
     sp.Dispose();
 }