public GLBufferObject(GraphicsInterface gi, BufferTarget target, BufferUsage usage, IntPtr dataPtr, int size) :base(gi) { fBufferTarget = target; // Generate the buffer ID gi.GenBufferID(out fBufferID); // Bind the buffer so subsequent calls apply to that buffer Bind(); if (size > 0) AllocateStorage(dataPtr, size, usage); Unbind(); }