GLSL::Shader Class Reference

A generic shader base class. More...

#include <GLSLShader.hh>

Inheritance diagram for GLSL::Shader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Shader (GLenum shaderType)
 Creates a new shader.
virtual ~Shader ()
 Deletes the shader object.
void setSource (StringList source)
 Upload the source of the shader.
bool compile ()
 Compile the shader object.

Protected Attributes

GLuint m_shaderId

Friends

class Program

Detailed Description

A generic shader base class.

Definition at line 78 of file GLSLShader.hh.


Constructor & Destructor Documentation

GLSL::Shader::Shader ( GLenum  shaderType  ) 

Creates a new shader.

Parameters:
[in] shaderType Can be one of GL_VERTEX_SHADER or GL_FRAGMENT_SHADER

Definition at line 78 of file GLSLShader.cc.


Member Function Documentation

bool GLSL::Shader::compile (  ) 

Compile the shader object.

Returns:
True if compilation was successful, or false if it failed. Also it prints out the shader source and the error message.

Definition at line 123 of file GLSLShader.cc.


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

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