GLSL Namespace Reference

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 ShaderPtrShader
typedef const ShaderPtrConstShader
typedef VertexShaderPtrVertexShader
typedef const VertexShaderPtrVertexConstShader
typedef FragmentShaderPtrFragmentShader
typedef const FragmentShaderPtrConstFragmentShader
typedef ProgramPtrProgram
typedef const ProgramPtrConstProgram

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.

Detailed Description

This namespace contains all the classes and functions for handling GLSL shader and program objects.


Function Documentation

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.

Generated on Thu Jun 30 10:12:22 2011 for DeveloperDocumentation by  doxygen 1.6.3