Afterglow.Graphics.GraphicStreams.OpenTKBufferBinding.Bind C# (CSharp) Method

Bind() public method

Binds the buffer.
public Bind ( ) : void
return void
        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();
            }
        }
OpenTKBufferBinding