BambooIsland: Shader Class Reference

BambooIsland Abgabe 2

- Main Page
- Related Pages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions

# Shader Class Reference

A class which encapsulates the shader handling. More...

`#include <Shader.h>`

List of all members.

## Public Member Functions

void | activate ()
| activates the shader - attention: only one shader can be active. activating a shader deactivates the previous active shader
GLint | getUniformLocation (const char *name)
| returns the position of a given uniform variable
GLint | getAttribLocation (const char *name)
| returns the position of a given attribute variable
GLuint | getShaderID ()
| returns the id of the shader
| Shader (const char *vertexshader_filename, const char *fragmentshader_filename, const char *geometryshader_filename=0)
| constructor - compiles a given vertex and fragment shader to a shader program. A geometry shader is optional.

## Detailed Description

A class which encapsulates the shader handling.

This class encapsulates the handling for opengl shaders. It loads, compiles and link a shader (at construction time), and provides methods to activate it and to get the position of uniforms or attributes.

Definition at line 19 of file Shader.h.

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

- C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/Shader.h
- C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/Shader.cpp

All Classes Functions Variables Enumerations Enumerator