Fluxus::GLSLShader Class Reference

#include <GLSLShader.h>

Renderer interface

void Apply ()
static void Init ()
static void Unapply ()

Public Member Functions

 GLSLShader (const string &vertexfilename, const string &fragmentfilename)
 The constructor attempts to load the shader pair immediately.
 ~GLSLShader ()
Uniform variables
void SetInt (const string &name, int s)
void SetFloat (const string &name, float s)
void SetVector (const string &name, dVector s)
void SetColour (const string &name, dColour s)
Attribute variables
void SetFloatArray (const string &name, const vector< float > &s)
void SetVectorArray (const string &name, const vector< dVector > &s)
void SetColourArray (const string &name, const vector< dColour > &s)

Detailed Description

A hardware shader

Definition at line 43 of file GLSLShader.h.

Constructor & Destructor Documentation

GLSLShader::GLSLShader ( const string &  vertexfilename,
const string &  fragmentfilename 

The constructor attempts to load the shader pair immediately.

Definition at line 27 of file GLSLShader.cpp.

GLSLShader::~GLSLShader (  ) 

Definition at line 33 of file GLSLShader.cpp.

Member Function Documentation

void GLSLShader::Init (  )  [static]

Definition at line 41 of file GLSLShader.cpp.

void GLSLShader::Apply (  ) 

Definition at line 48 of file GLSLShader.cpp.

void GLSLShader::Unapply (  )  [static]

Definition at line 56 of file GLSLShader.cpp.

void GLSLShader::SetInt ( const string &  name,
int  s 

Definition at line 64 of file GLSLShader.cpp.

void GLSLShader::SetFloat ( const string &  name,
float  s 

Definition at line 73 of file GLSLShader.cpp.

void GLSLShader::SetVector ( const string &  name,
dVector  s 

Definition at line 82 of file GLSLShader.cpp.

void GLSLShader::SetColour ( const string &  name,
dColour  s 

Definition at line 91 of file GLSLShader.cpp.

void GLSLShader::SetFloatArray ( const string &  name,
const vector< float > &  s 

Definition at line 100 of file GLSLShader.cpp.

void GLSLShader::SetVectorArray ( const string &  name,
const vector< dVector > &  s 

Definition at line 110 of file GLSLShader.cpp.

void GLSLShader::SetColourArray ( const string &  name,
const vector< dColour > &  s 

Definition at line 120 of file GLSLShader.cpp.

The documentation for this class was generated from the following files:
Generated on Tue Sep 4 23:22:40 2007 for The Fluxus Renderer (libfluxus) by  doxygen 1.5.1