#include <OglModel.h>


Public Member Functions | |
| OglModel () | |
| ~OglModel () | |
| bool | loadTexture (const std::string &filename) |
| void | initTextures () |
| Initialize the textures, or other graphical resources. | |
| void | initVisual () |
| Initialize the textures, or other graphical resources. | |
Private Member Functions | |
| void | internalDraw () |
Private Attributes | |
| Data< bool > | premultipliedAlpha |
| helper::gl::Texture * | tex |
This class implements VisuelModelImpl with rendering functions using OpenGL.
Definition at line 60 of file OglModel.h.
| sofa::component::visualmodel::OglModel::OglModel | ( | ) |
Definition at line 53 of file OglModel.cpp.
| sofa::component::visualmodel::OglModel::~OglModel | ( | ) |
| void sofa::component::visualmodel::OglModel::initTextures | ( | ) | [virtual] |
Initialize the textures, or other graphical resources.
Reimplemented from sofa::core::VisualModel.
Definition at line 215 of file OglModel.cpp.
References sofa::helper::gl::Texture::init(), and tex.
| void sofa::component::visualmodel::OglModel::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::VisualModelImpl.
Definition at line 207 of file OglModel.cpp.
References sofa::helper::gl::Texture::init(), and tex.
| void sofa::component::visualmodel::OglModel::internalDraw | ( | ) | [private, virtual] |
Reimplemented from sofa::component::visualmodel::VisualModelImpl.
Definition at line 64 of file OglModel.cpp.
References sofa::helper::gl::Texture::bind(), sofa::defaulttype::Vec< N, real >::clear(), sofa::core::objectmodel::BaseObject::getContext(), sofa::defaulttype::ExtVector< T >::getData(), sofa::core::objectmodel::Data< T >::getValue(), sofa::component::visualmodel::VisualModelImpl::isTransparent(), sofa::component::visualmodel::VisualModelImpl::material, premultipliedAlpha, sofa::defaulttype::Vec< N, real >::ptr(), sofa::component::visualmodel::VisualModelImpl::quads, sofa::defaulttype::ExtVector< T >::size(), tex, sofa::component::visualmodel::VisualModelImpl::triangles, sofa::helper::gl::Texture::unbind(), sofa::component::visualmodel::VisualModelImpl::vertices, sofa::component::visualmodel::VisualModelImpl::vnormals, sofa::component::visualmodel::VisualModelImpl::vtexcoords, and sofa::component::visualmodel::RigidMappedModel::xforms.
| bool sofa::component::visualmodel::OglModel::loadTexture | ( | const std::string & | filename | ) | [virtual] |
Reimplemented from sofa::component::visualmodel::VisualModelImpl.
Reimplemented in SofaFlowVR::FlowVRRenderMesh.
Definition at line 198 of file OglModel.cpp.
References sofa::helper::io::Image::Create(), and tex.
Referenced by SofaFlowVR::FlowVRRenderMesh::loadTexture().
Definition at line 64 of file OglModel.h.
Referenced by initTextures(), initVisual(), internalDraw(), loadTexture(), and ~OglModel().
1.5.7.1