glEnableVertexAttribArray

Enable or disable a generic vertex attribute array

Signature

glDisableVertexAttribArray( GLuint ( index ) )-> void
glDisableVertexAttribArray( index )
glEnableVertexAttribArray( GLuint ( index ) )-> void
glEnableVertexAttribArray( index )

Parameters

VariablesDescription
index
Specifies the index of the generic vertex attribute to be enabled or disabled.

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.

glDisableVertexAttribArray
OpenGLContext tests/shader_8.py Lines: 251, 252
OpenGLContext tests/shader_10.py Lines: 328, 329
OpenGLContext tests/shader_9.py Lines: 383, 384
OpenGLContext tests/shader_6.py Lines: 317, 318
OpenGLContext tests/shader_11.py Lines: 313, 314, 315
OpenGLContext tests/shader_5.py Lines: 318, 319
OpenGLContext tests/shader_7.py Lines: 333, 334
OpenGLContext tests/pygame_textureatlas.py Lines: 149, 150
OpenGLContext tests/shader_4.py Lines: 169, 170, 171
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 96
OpenGL Tutorial (Python Translation) t02.playing-with-colors/FragPosition.py Lines: 92
OpenGL Tutorial (Python Translation) t02.playing-with-colors/VertexColors.py Lines: 97, 98
OpenGL Tutorial (Python Translation) t01.hello-triangle/HelloTriangle.py Lines: 106
glEnableVertexAttribArray
OpenGLContext tests/shader_8.py Lines: 233, 234
OpenGLContext tests/shader_10.py Lines: 311, 312
OpenGLContext tests/shader_9.py Lines: 366, 367
OpenGLContext tests/shader_spike.py Lines: 82, 87
OpenGLContext tests/shader_6.py Lines: 288, 289
OpenGLContext tests/shader_11.py Lines: 291, 292, 293
OpenGLContext tests/shader_5.py Lines: 303, 304
OpenGLContext tests/shader_7.py Lines: 316, 317
OpenGLContext tests/pygame_textureatlas.py Lines: 135, 141
OpenGLContext tests/shader_4.py Lines: 140, 141, 142
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 89
Gloopy gloopy/view/glyph.py Lines: 80, 81, 82
OpenGL Tutorial (Python Translation) t02.playing-with-colors/FragPosition.py Lines: 87
OpenGL Tutorial (Python Translation) t02.playing-with-colors/VertexColors.py Lines: 90, 91
OpenGL Tutorial (Python Translation) t01.hello-triangle/HelloTriangle.py Lines: 101
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 194
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 204
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 175
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 164