GLCOMPILESHADER(3gl)GLCOMPILESHADER(3gl)NAMEglCompileShaderARB - Compiles a shader object.
C SPECIFICATION
void glCompileShaderARB( GLhandleARB shader )
PARAMETERS
shader Specifies the handle of shader object to be compiled.
DESCRIPTIONglCompileShaderARB compiles the source code for shader object specified
by shader.
The status of the compilation can be quried by calling glGetObjectPa‐
rameterARB with arguments shader and GL_OBJECT_COMPILE_STATUS_ARB. The
compile status will be GL_TRUE if compilation was successful otherwise
it is GL_FALSE.
NOTESglCompileShaderARB can return before compilation has completed. Opera‐
tions such as glLinkProgramARB which depend on the successful comple‐
tion of the compilation will be blocked until compilation has com‐
pleted. The status of a compilation can be checked with by calling
glGetObjectParameterARB.
ERRORS
GL_INVALID_VALUE is generated if shader is not a valid handle.
GL_INVALID_OPERATION is generated if shader is not of type
GL_SHADER_OBJECT_ARB.
GL_INVALID_OPERATION is generated glBindAttribLocationARB is executed
between glBegin and glEnd.
ASSOCIATED GETS
glGetobjectParamenterARB with arguments shader and GL_MAX_VER‐
TEX_ATTRIBS_ARB
glGetInfoLogARB with argument shader
SEE ALSO
glCreateShaderObjectARB, glLinkProgramARB, glShaderSourceARB
11 Mar 04 GLCOMPILESHADER(3gl)