Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions
Shader Class Reference

List of all members.

Public Member Functions

 Shader ()
 ~Shader ()
void loadCompileAndLinkShader (char *vertexShaderLocation, char *geometryShaderLocation, char *fragmentShaderLoacation)
void loadCompileAndLinkShader (char *vertexShaderLocation, char *fragmentShaderLoacation)
void bind_frag_data_location (const std::string &name)
void bind_frag_data_location (const std::string &name, const std::string &name2)
GLint getShaderProgram () const

Constructor & Destructor Documentation

Shader::Shader ( )

The constructor.

Shader::~Shader ( )

The destructor.


Member Function Documentation

GLint Shader::getShaderProgram ( ) const

Returns a handle for the shader program.

void Shader::loadCompileAndLinkShader ( char *  vertexShaderLocation,
char *  geometryShaderLocation,
char *  fragmentShaderLoacation 
)

Loads, compiles and links the shader to the given parameters.

Parameters:
vertexShaderLocationThe location of the vertex shader.
fragmentShaderLoacationThe location of the fragment shader.
void Shader::loadCompileAndLinkShader ( char *  vertexShaderLocation,
char *  fragmentShaderLoacation 
)

Loads, compiles and links the shader to the given parameters.

Parameters:
vertexShaderLocationThe location of the vertex shader.
fragmentShaderLoacationThe location of the fragment shader.

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