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