Developer Documentation
ACG::Texture Class Reference
Inheritance diagram for ACG::Texture:
ACG::Texture1D ACG::Texture2D ACG::Texture3D ACG::TextureBuffer

Public Member Functions

 Texture (GLenum tgt, GLenum _unit=GL_NONE)
 
void bind (GLenum _unit)
 
void activate (GLenum _unit)
 
void bind ()
 
void activate ()
 
void parameter (GLenum pname, GLint i)
 
void parameter (GLenum pname, GLfloat f)
 
void parameter (GLenum pname, GLint *ip)
 
void parameter (GLenum pname, GLfloat *fp)
 
void enable ()
 
void disable ()
 
void del ()
 
void gen ()
 
bool is_valid () const
 
GLuint id () const
 
void setUnit (GLenum u)
 
GLenum getUnit () const
 
GLenum getTarget () const
 
GLint getInternalFormat ()
 
bool clear (const ACG::Vec4f &_color)
 
bool clear (const ACG::Vec4i &_color)
 
bool clear (const ACG::Vec4ui &_color)
 
void bindAsImage (GLuint _index, GLenum _access)
 

Static Public Member Functions

static bool supportsImageLoadStore ()
 
static bool supportsTextureBuffer ()
 
static bool supportsClearTexture ()
 
static bool supportsGenerateMipmap ()
 

Protected Attributes

GLint internalFormat_
 

Private Attributes

GLenum target
 
GLenum unit
 
bool valid
 
GLuint texture
 

Detailed Description

Definition at line 234 of file globjects.hh.

Constructor & Destructor Documentation

◆ Texture()

Texture::Texture ( GLenum  tgt,
GLenum  _unit = GL_NONE 
)

Definition at line 60 of file globjects.cc.

◆ ~Texture()

virtual ACG::Texture::~Texture ( )
inlinevirtual

Definition at line 240 of file globjects.hh.

Member Function Documentation

◆ activate() [1/2]

void ACG::Texture::activate ( )
inline

Definition at line 257 of file globjects.hh.

◆ activate() [2/2]

void ACG::Texture::activate ( GLenum  _unit)
inline

Definition at line 250 of file globjects.hh.

◆ bind() [1/2]

void ACG::Texture::bind ( )
inline

Definition at line 255 of file globjects.hh.

◆ bind() [2/2]

void ACG::Texture::bind ( GLenum  _unit)
inline

Definition at line 243 of file globjects.hh.

◆ bindAsImage()

void Texture::bindAsImage ( GLuint  _index,
GLenum  _access 
)

Definition at line 65 of file globjects.cc.

◆ clear() [1/3]

bool Texture::clear ( const ACG::Vec4f _color)

Definition at line 125 of file globjects.cc.

◆ clear() [2/3]

bool Texture::clear ( const ACG::Vec4i _color)

Definition at line 149 of file globjects.cc.

◆ clear() [3/3]

bool Texture::clear ( const ACG::Vec4ui _color)

Definition at line 137 of file globjects.cc.

◆ del()

void ACG::Texture::del ( )
inline

Definition at line 295 of file globjects.hh.

◆ disable()

void ACG::Texture::disable ( )
inline

Definition at line 289 of file globjects.hh.

◆ enable()

void ACG::Texture::enable ( )
inline

Definition at line 283 of file globjects.hh.

◆ gen()

void ACG::Texture::gen ( )
inline

Definition at line 301 of file globjects.hh.

◆ getInternalFormat()

GLint Texture::getInternalFormat ( )

Definition at line 78 of file globjects.cc.

◆ getTarget()

GLenum ACG::Texture::getTarget ( ) const
inline

Definition at line 309 of file globjects.hh.

◆ getUnit()

GLenum ACG::Texture::getUnit ( ) const
inline

Definition at line 308 of file globjects.hh.

◆ id()

GLuint ACG::Texture::id ( ) const
inline

Definition at line 305 of file globjects.hh.

◆ is_valid()

bool ACG::Texture::is_valid ( ) const
inline

Definition at line 303 of file globjects.hh.

◆ parameter() [1/4]

void ACG::Texture::parameter ( GLenum  pname,
GLfloat *  fp 
)
inline

Definition at line 277 of file globjects.hh.

◆ parameter() [2/4]

void ACG::Texture::parameter ( GLenum  pname,
GLfloat  f 
)
inline

Definition at line 265 of file globjects.hh.

◆ parameter() [3/4]

void ACG::Texture::parameter ( GLenum  pname,
GLint *  ip 
)
inline

Definition at line 271 of file globjects.hh.

◆ parameter() [4/4]

void ACG::Texture::parameter ( GLenum  pname,
GLint  i 
)
inline

Definition at line 259 of file globjects.hh.

◆ setUnit()

void ACG::Texture::setUnit ( GLenum  u)
inline

Definition at line 307 of file globjects.hh.

◆ supportsClearTexture()

bool Texture::supportsClearTexture ( )
static

Definition at line 194 of file globjects.cc.

◆ supportsGenerateMipmap()

bool Texture::supportsGenerateMipmap ( )
static

Definition at line 211 of file globjects.cc.

◆ supportsImageLoadStore()

bool Texture::supportsImageLoadStore ( )
static

Definition at line 161 of file globjects.cc.

◆ supportsTextureBuffer()

bool Texture::supportsTextureBuffer ( )
static

Definition at line 180 of file globjects.cc.

Member Data Documentation

◆ internalFormat_

GLint ACG::Texture::internalFormat_
protected

Definition at line 353 of file globjects.hh.

◆ target

GLenum ACG::Texture::target
private

Definition at line 348 of file globjects.hh.

◆ texture

GLuint ACG::Texture::texture
private

Definition at line 350 of file globjects.hh.

◆ unit

GLenum ACG::Texture::unit
private

Definition at line 348 of file globjects.hh.

◆ valid

bool ACG::Texture::valid
private

Definition at line 349 of file globjects.hh.


The documentation for this class was generated from the following files: