public unsafe override void Dispose()
 {
     Vbo.Dispose();
     Ebo.Dispose();
     Vao.Dispose();
     shader.Dispose();
     foreach (var item in textures)
     {
         item.Dispose();
     }
 }
Beispiel #2
0
 public override void Dispose()
 {
     if (Name != "")
     {
         if (Material != null)
         {
             Material.Dispose();
         }
         if (Vbo != null)
         {
             Vbo.Dispose();
         }
         Log.WriteLine("Disposed: " + Name + " (mesh)", false);
         Name = "";
     }
 }