Example #1
0
 protected void DisposeVertexBuffer()
 {
     if (vertexBuffer != null)
     {
         vertexBuffer.Dispose();
         vertexBuffer = null;
     }
 }
 /// <summary>
 /// free all the billboard vertex buffers, and clear renderOps
 /// </summary>
 protected void FreeRenderOps()
 {
     foreach (TreeBillboardRenderOp op in renderOps)
     {
         HardwareVertexBuffer vb = op.renderOp.vertexData.vertexBufferBinding.GetBuffer(0);
         vb.Dispose();
     }
     renderOps.Clear();
 }
Example #3
0
 // cant override? well mogre wont be able to manage it! ...
 public virtual void Dispose()
 {
     _ib.Dispose();
     _vb.Dispose();
 }