SOFA API  56988ca1
Open source framework for multi-physics simuation
sofa::gl::Texture Class Reference

#include <Texture.h>

Public Member Functions

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

Constructor details

◆ Texture() [1/2]

sofa::gl::Texture::Texture ( )
inline

◆ Texture() [2/2]

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

◆ ~Texture()

sofa::gl::Texture::~Texture ( void  )

Function details

◆ bind()

void sofa::gl::Texture::bind ( void  )

◆ getId()

GLuint sofa::gl::Texture::getId ( ) const
inline

◆ getImage()

helper::io::Image * sofa::gl::Texture::getImage ( void  )

◆ getTarget()

GLuint sofa::gl::Texture::getTarget ( ) const
inline

◆ init()

void sofa::gl::Texture::init ( void  )

◆ unbind()

void sofa::gl::Texture::unbind ( void  )

◆ update()

void sofa::gl::Texture::update ( )