GLBINDBUFFERBASE(3G) | OpenGL 3.3 | GLBINDBUFFERBASE(3G) |
glBindBufferBase - bind a buffer object to an indexed buffer target
void glBindBufferBase(GLenum target, GLuint index, GLuint buffer);
target
index
buffer
glBindBufferBase binds the buffer object buffer to the binding point at index index of the array of targets specified by target. Each target represents an indexed array of buffer binding points, as well as a single general binding point that can be used by other buffer manipulation functions such as glBindBuffer() or glMapBuffer(). In addition to binding buffer to the indexed buffer binding target, glBindBufferBase also binds buffer to the generic buffer binding point specified by target.
Calling glBindBufferBase is equivalent to calling glBindBufferRange() with offset zero and size equal to the size of the buffer.
GL_INVALID_ENUM is generated if target is not GL_TRANSFORM_FEEDBACK_BUFFER or GL_UNIFORM_BUFFER.
GL_INVALID_VALUE is generated if index is greater than or equal to the number of target-specific indexed binding points.
GL_INVALID_VALUE is generated if buffer does not have an associated data store, or if the size of that store is zero.
glGenBuffers(), glDeleteBuffers(), glBindBuffer(), glBindBufferRange(), glMapBuffer(), glUnmapBuffer(),
Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
03/08/2011 | OpenGL 3.3 |