MAPS-TFSS: Manipulating And Perceiving Simultaneously - Tactile Force Sensor Simulator

Public Member Functions | Protected Member Functions

Graphics::Sensing::TactileSensorShader Class Reference

Extends ShaderClass to manage resources for shaders for use in TactileSensor. More...

#include <TactileSensorShader.hpp>

Inheritance diagram for Graphics::Sensing::TactileSensorShader:
Inheritance graph
[legend]
Collaboration diagram for Graphics::Sensing::TactileSensorShader:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Extends ShaderClass to manage resources for shaders for use in TactileSensor.

Only does anything with the fragment shader.

Author:
Zachary Pezzementi

Definition at line 47 of file TactileSensorShader.hpp.


Constructor & Destructor Documentation

Graphics::Sensing::TactileSensorShader::TactileSensorShader (  )  [inline]

Default constructor.

Definition at line 51 of file TactileSensorShader.hpp.


Member Function Documentation

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]
void Graphics::Sensing::TactileSensorShader::showTex ( GLuint  input  )  [protected]

Applies shader from input to the bound output.

Definition at line 45 of file TactileSensorShader.cpp.


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