Shader Object. More...
#include <shader_object.h>
Public Member Functions | |
Attributes | |
| unsigned int | get_handle () const |
| Returns the OpenGL shader handle. More... | |
| ShaderType | get_shader_type () const |
| Gets the shader type. More... | |
| std::string | get_info_log () const |
| Get shader object's info log. More... | |
| std::string | get_shader_source () const |
| Get shader source code. More... | |
| bool | is_null () const |
| Returns true if this object is invalid. More... | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. More... | |
| ShaderObjectProvider * | get_provider () const |
| Get Provider. More... | |
Operations | |
| bool | operator== (const ShaderObject &other) const |
| Handle comparison operator. More... | |
| bool | compile () |
| Compile program. More... | |
Shader Object.
The source code that makes up a program that gets executed by one of the programmable stages is encapsulated in one or more shader objects. Shader objects are attached to a program objects to form a programmable setup. ShaderObject is ClanLib's C++ interface to OpenGL shader objects.