#include <shader_object.h>
Construction | |
| CL_ShaderObject (CL_GraphicContext &gc, CL_ShaderType type, const CL_StringRef &source) | |
| Constructs an OpenGL shader. | |
| CL_ShaderObject (CL_GraphicContext &gc, CL_ShaderType type, const std::vector< CL_StringRef > &sources) | |
| Constructs a ShaderObject. | |
| CL_ShaderObject (CL_GraphicContextProvider *gc_provider, CL_ShaderType type, const CL_StringRef &source) | |
| Constructs a ShaderObject. | |
| CL_ShaderObject (CL_GraphicContextProvider *gc_provider, CL_ShaderType type, const std::vector< CL_StringRef > &sources) | |
| Constructs a ShaderObject. | |
| virtual | ~CL_ShaderObject () |
| static CL_ShaderObject | load (CL_GraphicContext &gc, const CL_StringRef &resource_id, CL_ResourceManager *resources) |
| Load. | |
| static CL_ShaderObject | load (CL_GraphicContext &gc, CL_ShaderType type, const CL_StringRef &filename, const CL_VirtualDirectory &directory) |
| Load. | |
| static CL_ShaderObject | load (CL_GraphicContext &gc, CL_ShaderType type, const CL_StringRef &fullname) |
| Load. | |
| static CL_ShaderObject | load (CL_GraphicContext &gc, CL_ShaderType type, CL_IODevice &file) |
| Load. | |
| static CL_ShaderObject | load_and_compile (CL_GraphicContext &gc, CL_ShaderType type, const CL_StringRef &filename, const CL_VirtualDirectory &directory) |
| Load and compile. | |
| static CL_ShaderObject | load_and_compile (CL_GraphicContext &gc, CL_ShaderType type, const CL_StringRef &filename) |
| Load and compile. | |
| static CL_ShaderObject | load_and_compile (CL_GraphicContext &gc, CL_ShaderType type, CL_IODevice &file) |
| Load and compile. | |
Public Member Functions | |
Attributes | |
| unsigned int | get_handle () const |
| Returns the OpenGL shader handle. | |
| CL_ShaderType | get_shader_type () const |
| Gets the shader type. | |
| CL_String | get_info_log () const |
| Get shader object's info log. | |
| CL_String | get_shader_source () const |
| Get shader source code. | |
Operations | |
| bool | operator== (const CL_ShaderObject &other) const |
| Handle comparision operator. | |
| bool | compile () |
| Compile program. | |
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. CL_ShaderObject is ClanLib's C++ interface to OpenGL shader objects.
|
||||||||||||||||
|
Constructs an OpenGL shader.
|
|
||||||||||||||||
|
Constructs a ShaderObject.
|
|
||||||||||||||||
|
Constructs a ShaderObject.
|
|
||||||||||||||||
|
Constructs a ShaderObject.
|
|
|
|
|
|
Compile program. If the compiling fails, get_info_log() will return the compile log. |
|
|
Returns the OpenGL shader handle.
|
|
|
Get shader object's info log.
|
|
|
Get shader source code.
|
|
|
Gets the shader type.
|
|
||||||||||||||||
|
Load.
|
|
||||||||||||||||
|
Load.
|
|
||||||||||||||||||||
|
Load.
|
|
||||||||||||||||
|
Load.
|
|
||||||||||||||||
|
Load and compile.
|
|
||||||||||||||||
|
Load and compile.
|
|
||||||||||||||||||||
|
Load and compile.
|
|
|
Handle comparision operator.
|
1.4.6