#include <OglTexture.h>


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 |
Definition at line 88 of file OglTexture.h.
| sofa::component::visualmodel::OglTexture2D::OglTexture2D | ( | ) |
Definition at line 119 of file OglTexture.cpp.
| sofa::component::visualmodel::OglTexture2D::~OglTexture2D | ( | ) | [virtual] |
| void sofa::component::visualmodel::OglTexture2D::backwardDraw | ( | ) | [protected, virtual] |
| void sofa::component::visualmodel::OglTexture2D::bind | ( | void | ) | [virtual] |
Implements sofa::component::visualmodel::OglTexture.
Definition at line 189 of file OglTexture.cpp.
References sofa::helper::gl::Texture::bind(), initVisual(), and texture2D.
Referenced by initVisual().
| void sofa::component::visualmodel::OglTexture2D::forwardDraw | ( | ) | [protected, virtual] |
| void sofa::component::visualmodel::OglTexture2D::initVisual | ( | ) | [virtual] |
Initialize the textures, or other graphical resources.
Called once before the first frame is drawn, and if the graphical context has been recreated.
Reimplemented from sofa::component::visualmodel::OglTexture.
Definition at line 152 of file OglTexture.cpp.
References bind(), sofa::core::objectmodel::Data< T >::getValue(), img, sofa::helper::gl::Texture::init(), repeat, sofa::component::visualmodel::OglTexture::setActiveTexture(), sofa::component::visualmodel::OglShader::setTexture(), sofa::component::visualmodel::OglShaderElement::shader, texture2D, texture2DFilename, sofa::component::visualmodel::OglTexture::textureUnit, and unbind().
Referenced by bind().
| void sofa::component::visualmodel::OglTexture2D::parse | ( | core::objectmodel::BaseObjectDescription * | arg | ) | [virtual] |
Parse the given description to assign values to this object's fields and potentially other parameters.
Reimplemented from sofa::core::objectmodel::Base.
Definition at line 132 of file OglTexture.cpp.
References sofa::helper::io::Image::Create(), sofa::core::objectmodel::BaseObjectDescription::getAttribute(), sofa::core::objectmodel::Data< T >::getValue(), img, sofa::core::objectmodel::Data< T >::setValue(), texture2DFilename, and sofa::component::visualmodel::OglTexture::textureUnit.
| 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().
Definition at line 93 of file OglTexture.h.
Referenced by bind(), initVisual(), unbind(), and ~OglTexture2D().
Data<std::string> sofa::component::visualmodel::OglTexture2D::texture2DFilename [private] |
1.5.7.1