public override void Dispose() { if (GameController.OnGodot) { FontData.Dispose(); } }
public void Dispose() { foreach (string key in _Ldraw.Keys) { FontData drawTarget = _Ldraw[key]; drawTarget.Dispose(); } renderTarget.Dispose(); }
protected virtual void Dispose(bool disposing) { // Check to see if Dispose has already been called. if (!_disposed) { // If disposing equals true, dispose all managed // and unmanaged resources. if (disposing) { //QFontDrawingPimitive.Font.FontData.Dispose(); FontData.Dispose(); } // Note disposing has been done. _disposed = true; } }