Portal:OpenGL Objects/Program Objects

From OpenGL Wiki
Revision as of 13:43, 26 February 2013 by Alfonse (talk | contribs) (Portal to program objects.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A Shader Object represents a set of text files for the OpenGL Shading Language. The user can compile these files for a particular Shader stage. The user can use the object to retrieve post-compilation information, such as whether the compilation succeeded or not and a list of error messages if it failed.

Shader objects can be linked together into a Program Object. This represents the full executable code for one or more Shader stages. It stores a series of uniforms and other settings that the user can change. And if the linking fails, the user can query a list of error messages describing the failures.