sofa::component::visualmodel::OglVariable Class Reference

Defines an uniform variable for a OglShader. More...

#include <OglVariable.h>

Inheritance diagram for sofa::component::visualmodel::OglVariable:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::visualmodel::OglVariable:

Collaboration graph
[legend]

Public Member Functions

 OglVariable ()
virtual ~OglVariable ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual void initVisual ()
 Initialize the textures, or other graphical resources.
virtual void reinit ()
 Update method called when variables used in precomputation are modified.

Detailed Description

Defines an uniform variable for a OglShader.

This is an abstract class which pass a value to an uniform variable defined into the shader. At the moment, following types have been supported :

Definition at line 55 of file OglVariable.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::OglVariable::OglVariable (  )  [inline]

Definition at line 60 of file OglVariable.h.

virtual sofa::component::visualmodel::OglVariable::~OglVariable (  )  [inline, virtual]

Definition at line 61 of file OglVariable.h.


Member Function Documentation

virtual void sofa::component::visualmodel::OglVariable::init ( void   )  [inline, virtual]

virtual void sofa::component::visualmodel::OglVariable::initVisual (  )  [inline, virtual]

virtual void sofa::component::visualmodel::OglVariable::reinit (  )  [inline, virtual]

Update method called when variables used in precomputation are modified.

Reimplemented from sofa::core::objectmodel::BaseObject.

Definition at line 65 of file OglVariable.h.

References init(), and initVisual().


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

Generated on Sun Nov 23 04:21:47 2008 for Sofa by  doxygen 1.5.7.1