示例#1
0
 public void Dispose()
 {
     VertexBuffer.Dispose();
     IndexBuffer.Dispose();
     VertexBuffer = null;
     IndexBuffer  = null;
 }
示例#2
0
 internal void Dispose()
 {
     if (Vertices == null)
     {
         return;
     }
     if (!Vertices.Disposed)
     {
         Vertices.Dispose();
     }
     Vertices    = null;
     VertexCount = 0;
 }