GLSL::Program Class Reference

GLSL program class. More...

#include <GLSLShader.hh>

List of all members.

Public Member Functions

 Program ()
 Creates a new GLSL program object.
virtual ~Program ()
 Deletes the GLSL program object and frees the linked shader objects.
void attach (PtrConstShader shader)
 Attaches a shader object to the program object.
void detach (PtrConstShader shader)
 Detaches a shader object from the program object.
void link ()
 Links the shader objects to the program.
void setUniform (const char *name, GLint value)
 Sets a uniform variable for the program.
void setUniform (const char *name, GLfloat value)
 Sets a uniform variable for the program.
void setUniform (const char *name, const ACG::Vec3f &value)
 Sets a uniform variable for the program.
void setUniform (const char *name, GLint *value, int count)
void setUniform (const char *name, int index, bool value)
void setUniform (const char *name, int index, int value)
void setUniform (const char *name, int index, float value)
void bindAttributeLocation (unsigned int index, const char *name)
int getAttributeLocation (const char *name)
int getUniformLocation (const char *name)
void use ()
 Enables the program object for using.
void disable ()
 Resets to standard rendering pipeline.
bool isActive ()
 Returns if the program object is currently active.

Private Attributes

std::list< PtrConstShaderm_linkedShaders
GLint m_programId

Detailed Description

GLSL program class.

A GLSL program links together the vertex and fragment shaders.

Definition at line 131 of file GLSLShader.hh.


The documentation for this class was generated from the following files:

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .