OpenGL Program wrapper.
Creates an empty program.
Creates a program from a set of compiled shaders.
Compiles N times the same GLSL source and link to a program.
The same input is compiled 1 to 6 times, each time prepended with a #define specific to a shader type.
Each of these macros are alternatively set to 1 while the others are set to 0. If such a macro isn't used in any preprocessor directive of your source, this shader stage is considered unused.
For conformance reasons, any #version directive on the first line will stay at the top.
#version 110 uniform vec4 color; #if VERTEX_SHADER void main() { gl_Vertex = ftransform(); } #elif FRAGMENT_SHADER void main() { gl_FragColor = color; } #endif
Ditto, except with lines in a single string.
Attaches OpenGL shaders to this program.
Links this OpenGL program.
Uses this program for following draw calls.
Unuses this program.
Gets the linking report.
Gets an attribute by name.
Represent an OpenGL program attribute. Owned by a GLProgram.
Creates a fake disabled attribute, designed to cope with attribute
that have been optimized out by the OpenGL driver, or those which do not exist.