glGetActiveAttrib

Returns information about an active attribute variable for the specified program object

Signature

glGetActiveAttrib( GLuint ( program ) , GLuint ( index ) , GLsizei ( bufSize ) , GLsizei *( length ) , GLint *( size ) , GLenum *( type ) , GLchar *( name ) )-> void
glGetActiveAttrib( program , index , bufSize , length , size , type , name )

Parameters

VariablesDescription
program
Specifies the program object to be queried.
index
Specifies the index of the attribute variable to be queried.
bufSize
Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name .
length
Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed.
size
Returns the size of the attribute variable.
type
Returns the data type of the attribute variable.
name
Returns a null terminated string containing the name of the attribute variable.