#include <Texture.h>

Public Member Functions | |
| Texture (io::Image *img) | |
| io::Image * | getImage (void) |
| void | bind (void) |
| void | unbind (void) |
| void | init (void) |
| ~Texture () | |
Private Attributes | |
| io::Image * | image |
| GLuint | id |
Definition at line 45 of file Texture.h.
| sofa::helper::gl::Texture::Texture | ( | io::Image * | img | ) | [inline] |
| sofa::helper::gl::Texture::~Texture | ( | void | ) |
| void sofa::helper::gl::Texture::bind | ( | void | ) |
Definition at line 62 of file Texture.cpp.
Referenced by sofa::component::visualmodel::OglTexture2D::bind(), sofa::gui::qt::viewer::qt::QtViewer::DrawLogo(), sofa::gui::qt::viewer::qgl::QtGLViewer::DrawLogo(), sofa::gui::glut::SimpleGUI::DrawLogo(), and sofa::component::visualmodel::OglModel::internalDraw().
| io::Image * sofa::helper::gl::Texture::getImage | ( | void | ) |
Definition at line 72 of file Texture.cpp.
References image.
Referenced by sofa::gui::qt::viewer::qt::QtViewer::DrawLogo(), sofa::gui::qt::viewer::qgl::QtGLViewer::DrawLogo(), and sofa::gui::glut::SimpleGUI::DrawLogo().
| void sofa::helper::gl::Texture::init | ( | void | ) |
Definition at line 39 of file Texture.cpp.
References sofa::helper::io::Image::getData(), sofa::helper::io::Image::getHeight(), sofa::helper::io::Image::getNbBits(), sofa::helper::io::Image::getWidth(), and image.
Referenced by sofa::gui::qt::viewer::qgl::QtGLViewer::init(), sofa::gui::qt::viewer::qt::QtViewer::initializeGL(), sofa::gui::glut::SimpleGUI::initializeGL(), sofa::component::visualmodel::OglModel::initTextures(), sofa::component::visualmodel::OglTexture2D::initVisual(), and sofa::component::visualmodel::OglModel::initVisual().
| void sofa::helper::gl::Texture::unbind | ( | void | ) |
Definition at line 67 of file Texture.cpp.
Referenced by sofa::component::visualmodel::OglModel::internalDraw(), and sofa::component::visualmodel::OglTexture2D::unbind().
GLuint sofa::helper::gl::Texture::id [private] |
io::Image* sofa::helper::gl::Texture::image [private] |
1.5.7.1