JavaScript EditorFree JavaScript Editor     Ajax Editor 



Main Page
Previous Page
Next Page

glIsProgram

Name

glIsProgram Determines whether a name corresponds to a program object

C Specification

GLboolean glIsProgram(GLuint program)

Parameters

program

Specifies a potential program object.


Description

glIsProgram returns GL_TRUE if program is the name of a program object. If program is zero or a non-zero value that is not the name of a program object, glIsProgram returns GL_FALSE.

Notes

glIsProgram is available only if the GL version is 2.0 or greater.

No error is generated if program is not a valid program object name.

Errors

GL_INVALID_OPERATION is generated if glIsProgram is executed between the execution of glBegin and the corresponding execution of glEnd.

Associated Gets

glGet with the argument GL_CURRENT_PROGRAM

glGetActiveAttrib with arguments program and the index of an active attribute variable

glGetActiveUniform with arguments program and the index of an active uniform variable

glGetAttachedShaders with argument program

glGetAttribLocation with arguments program and the name of an attribute variable

glGetProgram with arguments program and the parameter to be queried

glGetProgramInfoLog with argument program

glGetUniform with arguments program and the location of a uniform variable

glGetUniformLocation with arguments program and the name of a uniform variable

See Also

glAttachShader, glBindAttribLocation, glCreateProgram, glDeleteProgram, glDetachShader, glLinkProgram, glUniform, glUseProgram, glValidateProgram


Previous Page
Next Page




JavaScript EditorAjax Editor     JavaScript Editor