SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::helper::gl::Texture Class Reference

#include <Texture.h>

Public Member Functions

 Texture ()
 
 Texture (io::Image *img, bool repeat=true, bool linearInterpolation=true, bool generateMipmaps=true, bool srgbColorspace=false, float minLod=-1000, float maxLod=1000)
 
io::ImagegetImage (void)
 
GLuint getTarget () const
 
void bind (void)
 
void unbind (void)
 
void init ()
 
void update ()
 
 ~Texture ()
 
GLuint getId () const
 

Constructor details

sofa::helper::gl::Texture::Texture ( )
inline
sofa::helper::gl::Texture::Texture ( io::Image img,
bool  repeat = true,
bool  linearInterpolation = true,
bool  generateMipmaps = true,
bool  srgbColorspace = false,
float  minLod = -1000,
float  maxLod = 1000 
)
inline
sofa::helper::gl::Texture::~Texture ( void  )

Function details

void sofa::helper::gl::Texture::bind ( void  )
GLuint sofa::helper::gl::Texture::getId ( ) const
inline
io::Image * sofa::helper::gl::Texture::getImage ( void  )
GLuint sofa::helper::gl::Texture::getTarget ( ) const
inline
void sofa::helper::gl::Texture::init ( void  )
void sofa::helper::gl::Texture::unbind ( void  )
void sofa::helper::gl::Texture::update ( )