Esempio n. 1
0
 /// <summary>
 /// Releases the specified font.
 /// </summary>
 /// <param name="font">Font to release.</param>
 protected virtual void ReleaseFont(Font font)
 {
     if (font == null)
     {
         return;
     }
     if (m_Renderer == null)
     {
         return;
     }
     m_Renderer.FreeFont(font);
 }
Esempio n. 2
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public void Dispose()
 {
     m_Renderer.FreeFont(this);
     GC.SuppressFinalize(this);
 }