sofa::component::visualmodel::OglTexture2D Class Reference

#include <OglTexture.h>

Inheritance diagram for sofa::component::visualmodel::OglTexture2D:

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

Collaboration graph
[legend]

Public Member Functions

 OglTexture2D ()
virtual ~OglTexture2D ()
void parse (core::objectmodel::BaseObjectDescription *arg)
 Parse the given description to assign values to this object's fields and potentially other parameters.
void initVisual ()
 Initialize the textures, or other graphical resources.
void reinit ()
 Update method called when variables used in precomputation are modified.
void bind ()
void unbind ()

Protected Member Functions

void forwardDraw ()
void backwardDraw ()

Private Attributes

Data< std::string > texture2DFilename
Data< bool > repeat
helper::gl::Texture * texture2D
helper::io::Image * img

Detailed Description

Definition at line 88 of file OglTexture.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::OglTexture2D::OglTexture2D (  ) 

Definition at line 119 of file OglTexture.cpp.

sofa::component::visualmodel::OglTexture2D::~OglTexture2D (  )  [virtual]

Definition at line 127 of file OglTexture.cpp.

References texture2D.


Member Function Documentation

void sofa::component::visualmodel::OglTexture2D::backwardDraw (  )  [protected, virtual]

Implements sofa::component::visualmodel::OglTexture.

Definition at line 207 of file OglTexture.cpp.

void sofa::component::visualmodel::OglTexture2D::bind ( void   )  [virtual]

void sofa::component::visualmodel::OglTexture2D::forwardDraw (  )  [protected, virtual]

Implements sofa::component::visualmodel::OglTexture.

Definition at line 202 of file OglTexture.cpp.

void sofa::component::visualmodel::OglTexture2D::initVisual (  )  [virtual]

void sofa::component::visualmodel::OglTexture2D::parse ( core::objectmodel::BaseObjectDescription *  arg  )  [virtual]

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

Update method called when variables used in precomputation are modified.

Reimplemented from sofa::component::visualmodel::OglTexture.

Definition at line 103 of file OglTexture.h.

void sofa::component::visualmodel::OglTexture2D::unbind ( void   )  [virtual]

Implements sofa::component::visualmodel::OglTexture.

Definition at line 196 of file OglTexture.cpp.

References texture2D, and sofa::helper::gl::Texture::unbind().

Referenced by initVisual().


Field Documentation

Definition at line 95 of file OglTexture.h.

Referenced by initVisual(), and parse().

Definition at line 92 of file OglTexture.h.

Referenced by initVisual().

Definition at line 93 of file OglTexture.h.

Referenced by bind(), initVisual(), unbind(), and ~OglTexture2D().

Definition at line 91 of file OglTexture.h.

Referenced by initVisual(), and parse().


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

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