Exemple #1
0
        protected override void OnUnload()
        {
            base.OnUnload();

            _fontRenderer.Dispose();
            _shader?.Dispose();
            debugDraw?.Dispose();
            _plane?.Dispose();
        }
Exemple #2
0
 public void Dispose()
 {
     if (!device.IsDisposed)
     {
         running = false;
         renderLocker.Wait();
         renderLocker.Dispose();
         device.Dispose();
         direct3D.Dispose();
         fontRenderer.Dispose();
         textureRenderer.Dispose();
     }
 }
Exemple #3
0
        protected override void OnUnload()
        {
            base.OnUnload();

            fontRenderer.Dispose();

            GL.DeleteBuffer(vbo);
            GL.DeleteVertexArray(vao);

            GL.DeleteBuffer(_debugVbo);
            GL.DeleteBuffer(_debugCamCoords);
            GL.DeleteVertexArray(_debugVao);
        }
Exemple #4
0
 public void Dispose()
 {
     _renderer.Dispose();
 }
Exemple #5
0
 public void Dispose()
 {
     mFontRenderer.Dispose();
 }