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