public override void Dispose()
 {
     if (GameController.OnGodot)
     {
         FontData.Dispose();
     }
 }
Beispiel #2
0
        public void Dispose()
        {
            foreach (string key in _Ldraw.Keys)
            {
                FontData drawTarget = _Ldraw[key];

                drawTarget.Dispose();
            }

            renderTarget.Dispose();
        }
Beispiel #3
0
        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;
            }
        }