protected override void DisposeResource() { if (VertexBuffer != null) { VertexBuffer.Dispose(); VertexBuffer = null; } }
public VertexBucket(PPDDevice device) { VertexBuffer = VertexBufferFactoryManager.Factory.Create(device, BucketSize * ColoredTexturedVertex.Size); restCount = BucketSize; deallocatedSpaces = new Dictionary <int, Stack <int> >(); }