GLVALIDATEPROGRAM(3gl) GLVALIDATEPROGRAM(3gl) NAME glValidateProgramARB - Validates a program object C SPECIFICATION void glValidateProgramARB( GLhandleARB program) PARAMETERS program Specifies handle of program object to be validated. DESCRIPTION glValidateProgramARB verifies if the specified program object can exe‐ cute. The results of the glValidateProgramARB are placed in the infor‐ mation log and can be queried by calling glGetInfoLogARB. The string returned by glGetInfoLogARB can be empty or can contain information on why the validation failed or other information such as hints on how to make the program more efficient. To determine if the program object can execute call glGetObjectParame‐ terARB with argument program and GL_OBJECT_VALIDATE_STATUS_ARB. The value returned will be GL_TRUE if validation was successful and GL_FALSE if it was unsuccessful. ERRORS GL_INVALID_OPERATION is generated if program is not of type GL_PRO‐ GRAM_OBJECT_ARB GL_INVALID_OPERATION is generated glValidateProgramARB is executed between the execution of glBegin and the corresponding execution of glEnd. ASSOCIATED GETS glGetInfoLogARB with argument program. glGetObjectParameterARB with argument program and GL_OBJECT_VALI‐ DATE_STATUS_ARB. SEE ALSO glLinkProgramARB, glUseProgramObject 11 Mar 04 GLVALIDATEPROGRAM(3gl)[top]
Vote for polarhome |