Extends ShaderClass to manage resources for shaders for use in TactileSensor. More...
#include <TactileSensorShader.hpp>


Public Member Functions | |
| TactileSensorShader () | |
| Default constructor. | |
| virtual void | setup ()=0 |
| Set shader up to be ready to use. | |
| virtual void | execute (GLuint input, GLuint output) |
| Calls the shader with the given input and output targets. | |
| void | addVariable (ShaderVariable *v) |
| Associates a variable with this shader. | |
| void | clearVariables () |
| Clears list of associated variables. | |
Protected Member Functions | |
| void | showTex (GLuint input) |
| Applies shader from input to the bound output. | |
| void | associateVariables () |
| Update all variable values to the GPU. | |
Extends ShaderClass to manage resources for shaders for use in TactileSensor.
Only does anything with the fragment shader.
Definition at line 47 of file TactileSensorShader.hpp.
| Graphics::Sensing::TactileSensorShader::TactileSensorShader | ( | ) | [inline] |
Default constructor.
Definition at line 51 of file TactileSensorShader.hpp.
| void Graphics::Sensing::TactileSensorShader::addVariable | ( | ShaderVariable * | v | ) | [inline] |
Associates a variable with this shader.
Definition at line 68 of file TactileSensorShader.hpp.
| void Graphics::Sensing::TactileSensorShader::associateVariables | ( | ) | [protected] |
Update all variable values to the GPU.
Definition at line 117 of file TactileSensorShader.cpp.
| void Graphics::Sensing::TactileSensorShader::clearVariables | ( | ) |
Clears list of associated variables.
Definition at line 28 of file TactileSensorShader.cpp.
| void Graphics::Sensing::TactileSensorShader::execute | ( | GLuint | input, | |
| GLuint | output | |||
| ) | [virtual] |
Calls the shader with the given input and output targets.
Reimplemented in Graphics::Sensing::TactileSensorShaderReduction.
Definition at line 38 of file TactileSensorShader.cpp.
| virtual void Graphics::Sensing::TactileSensorShader::setup | ( | ) | [pure virtual] |
Set shader up to be ready to use.
Implemented in Graphics::Sensing::TactileSensorShaderBlurBase, Graphics::Sensing::TactileSensorShaderHorizontalBlur, Graphics::Sensing::TactileSensorShaderVerticalBlur, Graphics::Sensing::TactileSensorShaderCubic, Graphics::Sensing::TactileSensorShaderInvert, Graphics::Sensing::TactileSensorShaderReduction, and Graphics::Sensing::TactileSensorShaderRelinearize.
| void Graphics::Sensing::TactileSensorShader::showTex | ( | GLuint | input | ) | [protected] |
Applies shader from input to the bound output.
Definition at line 45 of file TactileSensorShader.cpp.