glGetAttribLocation

Returns the location of an attribute variable

Signature

glGetAttribLocation( GLuint ( program ) , const GLchar *( name ) )-> GLint
glGetAttribLocation( program , name ) -> <class 'ctypes.c_int'>
Check that name is a string with a null byte at the end of it

Parameters

VariablesDescription
program
Specifies the program object to be queried.
name
Points to a null terminated string containing the name of the attribute variable whose location is to be queried.

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.

glGetAttribLocation
OpenGLContext tests/shader_8.py Lines: 180
OpenGLContext tests/shader_10.py Lines: 237
OpenGLContext tests/shader_9.py Lines: 303
OpenGLContext tests/shader_spike.py Lines: 13, 66, 69
OpenGLContext tests/shader_6.py Lines: 228
OpenGLContext tests/shader_11.py Lines: 227
OpenGLContext tests/shader_5.py Lines: 278
OpenGLContext tests/shader_7.py Lines: 235
OpenGLContext tests/pygame_textureatlas.py Lines: 69, 70
OpenGLContext tests/shader_4.py Lines: 95, 98, 101
OpenGLContext OpenGLContext/scenegraph/shaders.py Lines: 538
Gloopy gloopy/view/shader.py Lines: 29