GLGETOBJECTPARAMETER(3gl)GLGETOBJECTPARAMETER(3gl)NAME
glGetObjectParameterfvARB - Returns the information log for an object.
C SPECIFICATION
void glGetObjectParameterfvARB( GLhandleARB object,
GLenum pname,
GLfloat *params )
void glGetObjectParameterivARB( GLhandleARB object,
GLenum pname,
GLint *params )
PARAMETERS
object Specifies the handle of object to be queried.
pname Specifies the symbolic name of object parameter. GL_OBJECT_TYPE_ARB,
GL_OBJECT_SUB‐
TYPE_ARB,
GL_OBJECT_DELETE_STA‐
TUS_ARB,
GL_OBJECT_LINK_STA‐
TUS_ARB,
GL_OBJECT_VAL‐
I‐
DATE_STA‐
TUS_ARB,
GL_OBJECT_COM‐
PILE_STA‐
TUS_ARB,
GL_OBJECT_INFO_LOG_LENGTH_ARB,
GL_OBJECT_ATTACHED_OBJECTS_ARB,
GL_OBJECT_ACTIVE_ATTRIBUTES_ARB,
GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB,
GL_OBJECT_ACTIVE_UNI‐
FORMS_ARB,
GL_OBJECT_ACTIVE_UNI‐
FORM_MAX_LENGTH_ARB,
GL_OBJECT_SHADER_SOURCE_LENGTH_ARB.
params Returns the requested object parameter.
DESCRIPTION
glGetObjectParameterfvARB returns the value of an object parame‐
ter in params. Accepted values are:
GL_OBJECT_TYPE_ARB Returns either GL_PROGRAM_OBJECT_ARB
or GL_SHADER_OBJECT_ARB depending on
if object is the handle to a program
object or a shader object.
GL_OBJECT_SUBTYPE_ARB Returns either GL_VERTEX_SHADER_ARB
or GL_FRAGMENT_SHADER_ARB depending
on if object is the handle to a pro‐
gram object or a shader object.
GL_OBJECT_DELETE_STATUS_ARB, Returns 1 or 1.0 if the object is
flagged for deletion. Otherwise
returns 0 or 0.0.
GL_OBJECT_LINK_STATUS_ARB Returns 1 or 1.0 if the last link
operation on the specified program
object was successful. Otherwise
returns 0 or 0.0.
GL_OBJECT_VALIDATE_STATUS_ARB, Returns 1 or 1.0 if the last valida‐
tion operation the specified program
object was successful. Otherwise
returns 0 or 0.0.
GL_OBJECT_COMPILE_STATUS_ARB, Returns 1 or 1.0 if the last compile
operation on the specified shader
object was successful. Otherwise
returns 0 or 0.0.
GL_OBJECT_INFO_LOG_LENGTH_ARB, Returns the number of characters in
the information log for the speci‐
fied object.
GL_OBJECT_ATTACHED_OBJECTS_ARB, Returns the number of shader object
attached to the specified program
object.
GL_OBJECT_ACTIVE_ATTRIBUTES_ARB, Returns the number of active
attributes for the specified program
object.
GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB,
Returns the number of characters in
the longest active attribute vari‐
able name for the specified program
object.
GL_OBJECT_ACTIVE_UNIFORMS_ARB, Returns the number of active uniform
variables for the specified program
object.
GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB,
Returns the number of characters in
the longest active uniform variable
name for the specified program
object.
GL_OBJECT_SHADER_SOURCE_LENGTH_ARB.
Returns the length the concatenated
source strings for the specified
shader object.
ERRORS
GL_INVALID_VALUE is generated if object is not a valid object handle.
GL_INVALID_OPERATION is generated if pname is GL_OBJECT_TYPE_ARB,
GL_OBJECT_DELETE_STATUS_ARB, or GL_OBJECT_INFOR_LOG_LENGTH_ARB, and
object does not refer to an object of type GL_PROGRAM_OBJECT_ARB or
GL_SHADER_OBJECT_ARB.
GL_INVALID_OPERATION is generated if pname is GL_OBJECT_SUBTYPE_ARB,
GL_OBJECT_COMPILE_STATUS_ARB, or GL_OBJECT_SHADER_SOURCE_LENGTH_ARB,
and object does not refer to an object of type GL_SHADER_OBJECT_ARB.
GL_INVALID_OPERATION is generated if pname is GL_OBJECT_LINK_STA‐
TUS_ARB, GL_OBJECT_VALIDATE_STATUS_ARB, GL_OBJECT_ATTACHED_OBJECTS_ARB,
GL_OBJECT_ACTIVE_ATTRIBUTES_ARB,
GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB, GL_OBJECT_ACTIVE_UNI‐
FORMS_ARB, or GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB and object does
not refer to an object of type GL_PROGRAM_OBJECT_ARB.
GL_INVALID_OPERATION is generated if object is not of type GL_PRO‐
GRAM_OBJECT_ARB or GL_SHADER_OBJECT_ARB.
GL_INVALID_ENUM is generated if pname is not an accepted value.
GL_INVALID_OPERATION is generated if pname is not an accepted value.
GL_INVALID_OPERATION is generated if glGetInfoLogARB is executed
between the execution of glBegin and the corresponding execution of
glEnd.
ASSOCIATED GETS
glGetActiveAttribARB with argument object
glGetActiveUniformARB with argument object
glGetAttachedObjectsARB with argument object
glGetInfoLogARB with argument object
glGetShaderSourceARB with argument object
SEE ALSO
glAttachObjectARB, glCompileShaderARB, glCreateProgramObjectARB, glCre‐
ateShaderObjectARB, glDeleteObjectARB, glLinkProgramARB, glShader‐
SourceARB, glValidateProgramARB
11 Mar 04 GLGETOBJECTPARAMETER(3gl)