public override void Bind()
{
if (Description.Usage == GraphicStreamUsage.Index)
{
GL.BindBuffer(BufferTarget.ElementArrayBuffer, mBuffer.Handle);
}
else if(Description.Usage == GraphicStreamUsage.Position)
{
GL.EnableClientState(EnableCap.VertexArray);
GL.BindBuffer(BufferTarget.ArrayBuffer, mBuffer.Handle);
GL.VertexPointer(3, VertexPointerType.Float, Description.ElementSizeInBytes,
IntPtr.Zero);
}
else
{
throw new NotImplementedException();
}
}