protected override void OnUnload() { base.OnUnload(); _fontRenderer.Dispose(); _shader?.Dispose(); debugDraw?.Dispose(); _plane?.Dispose(); }
public void Dispose() { if (!device.IsDisposed) { running = false; renderLocker.Wait(); renderLocker.Dispose(); device.Dispose(); direct3D.Dispose(); fontRenderer.Dispose(); textureRenderer.Dispose(); } }
protected override void OnUnload() { base.OnUnload(); fontRenderer.Dispose(); GL.DeleteBuffer(vbo); GL.DeleteVertexArray(vao); GL.DeleteBuffer(_debugVbo); GL.DeleteBuffer(_debugCamCoords); GL.DeleteVertexArray(_debugVao); }
public void Dispose() { _renderer.Dispose(); }
public void Dispose() { mFontRenderer.Dispose(); }