This namespace contains all the classes and functions for handling GLSL shader and program objects. More...
Classes | |
| class | Shader |
| A generic shader base class. More... | |
| class | VertexShader |
| GLSL vertex shader. More... | |
| class | FragmentShader |
| GLSL fragment shader. More... | |
| class | Program |
| GLSL program class. More... | |
Typedefs | |
| typedef std::list< std::string > | StringList |
| typedef Shader * | PtrShader |
| typedef const Shader * | PtrConstShader |
| typedef VertexShader * | PtrVertexShader |
| typedef const VertexShader * | PtrVertexConstShader |
| typedef FragmentShader * | PtrFragmentShader |
| typedef const FragmentShader * | PtrConstFragmentShader |
| typedef Program * | PtrProgram |
| typedef const Program * | PtrConstProgram |
Functions | |
| GLSL::StringList | loadShader (const char *filename) |
| Loads the shader source. | |
| GLSL::PtrVertexShader | loadVertexShader (const char *name) |
| Loads, compiles and installs a new vertex shader. | |
| GLSL::PtrFragmentShader | loadFragmentShader (const char *name) |
| Loads, compiles and installs a new vertex shader. | |
This namespace contains all the classes and functions for handling GLSL shader and program objects.
| GLSL::StringList ACGDLLEXPORT GLSL::loadShader | ( | const char * | filename | ) |
Loads the shader source.
The shader is assumed to be placed in ../shader relative to the executable's installation directory, if the path is a relativ one. If it is determined that the path is absolute, the path is taken as is.
1.6.3