GLCREATESHADEROBJECT(3gl)GLCREATESHADEROBJECT(3gl)NAME
glCreateShaderObjectARB - Creates a shader object.
C SPECIFICATION
GLhandleARB glCreateShaderObjectARB( GLenum shaderType )
PARAMETERS
shaderType Specifies the type of shader. Must be either GL_VER‐
TEX_SHAER_ARB or
GL_FRAG‐
MENT_SHADER_ARB
DESCRIPTION
glCreateShaderObjectARB creates a new shader object and returns its
handle. The parameter shaderType determines which kind of shader will
be created. Accepted values are GL_VERTEX_SHAER_ARB and GL_FRAG‐
MENT_SHADER_ARB.
NOTES
The name space for shader objects can be shared across multiple con‐
texts like texture objects and display lists.
ERRORS
GL_INVALID_ENUM is generated if shaderType is not either GL_VER‐
TEX_SHADER_ARB or GL_FRAGMENT_SHADER_ARB
GL_INVALID_OPERATION is generated glCreateShaderObjectARB is executed
between glBegin and glEnd.
ASSOCIATED GETS
glGetObjectParameterARB with the handle of a valid shader object and
GL_OBJECT_TYPE_ARB or GL_OBJECT_SUBTYPE_ARB
glGetInfoLogARB with the handle of a valid shader object.
glGetShaderSourceARB with the handle of a valid shader object.
SEE ALSO
glAttachObjectARB, glCompileShaderARB, glCreateProgramObjectARB,
glDeleteObjectARB, glDetachObjectARB, glShaderSourceARB
11 Mar 04 GLCREATESHADEROBJECT(3gl)