Пример #1
0
 public virtual void Dispose()
 {
     if (font != null)
     {
         font.Dispose();
     }
     if (colorFBO != null)
     {
         colorFBO.Dispose();
     }
     if (depthFBO != null)
     {
         depthFBO.Dispose();
     }
     if (skybox != null)
     {
         skybox.Dispose();
     }
     skybox           = null;
     colorFBO         = null;
     depthFBO         = null;
     font             = null;
     world            = null;
     Node.ObjectCount = 0;
     GLSLShader.UnBindShader();
     GLSLShader.SetShader("default.shader", "");
 }