One or more executables are created in a program object by successfully attaching shader objects to it with glAttachShader(), successfully compiling the shader objects with glCompileShader(), and successfully linking the program object with glLinkProgram(). These executables are made part of current state when glUseProgram() is called. Program objects can be deleted by calling glDeleteProgram(). The memory associated with the program object will be deleted when it is no longer part of current rendering state for any context.
Applications are responsible for providing the synchronization across API calls when objects are accessed from different execution threads.
glGetActiveAttrib() with a valid program object and the index of an active attribute variable
glGetActiveUniform() with a valid program object and the index of an active uniform variable
glGetAttachedShaders() with a valid program object
glGetAttribLocation() with a valid program object and the name of an attribute variable
glGetProgram() with a valid program object and the parameter to be queried
glGetProgramInfoLog() with a valid program object
glGetUniform() with a valid program object and the location of a uniform variable
glGetUniformLocation() with a valid program object and the name of a uniform variable
|Function / Feature Name||2.0||2.1||3.0||3.1||3.2||3.3||4.0||4.1||4.2||4.3||4.4||4.5|
Copyright © 2010-2014 Khronos Group