|
Flow Visualisation
|
OpenGL shader class. More...
#include <Shader.h>


Public Member Functions | |
| Shader () | |
| virtual | ~Shader (void) |
| bool | init (const char *vertexShaderFilename, const char *pixelShaderFilename) |
| Reads Shader from tex files. More... | |
| void | uninit (void) |
| Cleans up shader. More... | |
| void | bindAttributeLocations () |
| Binds correct attribute locations. More... | |
| void | use (void) |
| Sets this shader active. More... | |
| Uniform | getUniform (const char *uniformName) |
| Gets uniform by name. More... | |
| virtual void | render (SceneContext *context) |
| Sets shader active and saves it in. More... | |
Public Member Functions inherited from render::ISceneGraphPart | |
| ISceneGraphPart () | |
| child elements in the scene graph More... | |
| void | addChild (ISceneGraphPart *child) |
| adds child to this element in the scenegraph More... | |
| void | removeChild (ISceneGraphPart *child) |
| removes child from the scenegraph More... | |
| virtual | ~ISceneGraphPart () |
Additional Inherited Members | |
Protected Attributes inherited from render::ISceneGraphPart | |
| ISceneGraphPart * | m_parent |
| std::vector< ISceneGraphPart * > | m_children |
| parent element in the scene graph More... | |
OpenGL shader class.
|
inline |
|
virtual |
| void Shader::bindAttributeLocations | ( | ) |
Binds correct attribute locations.
|
inline |
Gets uniform by name.
| uniformName | Name of the uniform |
| bool Shader::init | ( | const char * | vertexShaderFilename, |
| const char * | pixelShaderFilename | ||
| ) |
|
virtual |
Sets shader active and saves it in.
| context | object to save current state of rendering Overwritten from |
Implements render::ISceneGraphPart.
| void Shader::uninit | ( | void | ) |
Cleans up shader.
| void Shader::use | ( | void | ) |
Sets this shader active.