glBindBuffer

bind a named buffer object

Signature

glBindBuffer( GLenum ( target ) , GLuint ( buffer ) )-> void
glBindBuffer( target , buffer )

Parameters

VariablesDescription
target
Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER , GL_ATOMIC_COUNTER_BUFFER , GL_COPY_READ_BUFFER , GL_COPY_WRITE_BUFFER , GL_DRAW_INDIRECT_BUFFER , GL_DISPATCH_INDIRECT_BUFFER , GL_ELEMENT_ARRAY_BUFFER , GL_PIXEL_PACK_BUFFER , GL_PIXEL_UNPACK_BUFFER , GL_QUERY_BUFFER , GL_SHADER_STORAGE_BUFFER , GL_TEXTURE_BUFFER , GL_TRANSFORM_FEEDBACK_BUFFER , or GL_UNIFORM_BUFFER .
buffer
Specifies the name of a buffer object.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glBindBuffer
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 632
{LGPL} Pyggel pyggel/data.py Lines: 387
OpenGL Tutorial (Python Translation) t02.playing-with-colors/FragPosition.py Lines: 62, 68, 86
OpenGL Tutorial (Python Translation) t02.playing-with-colors/VertexColors.py Lines: 65, 71, 89
OpenGL Tutorial (Python Translation) t01.hello-triangle/HelloTriangle.py Lines: 76, 82, 100
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 169, 172
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 150, 165, 206, 209, 260, 270
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 158, 173, 216, 219, 270, 280
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 132, 147, 187, 190, 238, 248
{GPL3} OpenGL-Programmable 05-shader.py Lines: 161, 164
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 176, 179
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 95, 98