Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  GeometryShader
 GLSL geometry 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 GeometryShaderPtrGeometryShader
typedef const GeometryShaderPtrConstGeometryShader
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.
GLSL::PtrGeometryShader loadGeometryShader (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.

Definition at line 519 of file GLSLShader.cc.