Developer Documentation
ACG::Texture1D Class Reference
Inheritance diagram for ACG::Texture1D:
ACG::Texture

Public Member Functions

 Texture1D (GLenum unit=GL_NONE)
 
void setData (GLint _level, GLint _internalFormat, GLsizei _width, GLenum _format, GLenum _type, const GLvoid *_data)
 
void setStorage (GLsizei _levels, GLenum _internalFormat, GLsizei _width)
 
GLsizei getWidth () const
 
GLenum getFormat () const
 
GLenum getType () const
 
bool getData (GLint _level, void *_dst)
 
bool getData (GLint _level, std::vector< char > &_dst)
 
- Public Member Functions inherited from ACG::Texture
 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)
 

Private Attributes

GLsizei width_
 
GLenum format_
 
GLenum type_
 

Additional Inherited Members

- Static Public Member Functions inherited from ACG::Texture
static bool supportsImageLoadStore ()
 
static bool supportsTextureBuffer ()
 
static bool supportsClearTexture ()
 
static bool supportsGenerateMipmap ()
 
- Protected Attributes inherited from ACG::Texture
GLint internalFormat_
 

Detailed Description

Definition at line 360 of file globjects.hh.

Constructor & Destructor Documentation

◆ Texture1D()

ACG::Texture1D::Texture1D ( GLenum  unit = GL_NONE)

Definition at line 231 of file globjects.cc.

Member Function Documentation

◆ getData() [1/2]

bool ACG::Texture1D::getData ( GLint  _level,
std::vector< char > &  _dst 
)

Definition at line 284 of file globjects.cc.

◆ getData() [2/2]

bool ACG::Texture1D::getData ( GLint  _level,
void *  _dst 
)

Definition at line 269 of file globjects.cc.

◆ getFormat()

GLenum ACG::Texture1D::getFormat ( ) const
inline

Definition at line 374 of file globjects.hh.

◆ getType()

GLenum ACG::Texture1D::getType ( ) const
inline

Definition at line 375 of file globjects.hh.

◆ getWidth()

GLsizei ACG::Texture1D::getWidth ( ) const
inline

Definition at line 373 of file globjects.hh.

◆ setData()

void ACG::Texture1D::setData ( GLint  _level,
GLint  _internalFormat,
GLsizei  _width,
GLenum  _format,
GLenum  _type,
const GLvoid *  _data 
)

Definition at line 236 of file globjects.cc.

◆ setStorage()

void ACG::Texture1D::setStorage ( GLsizei  _levels,
GLenum  _internalFormat,
GLsizei  _width 
)

Definition at line 254 of file globjects.cc.

Member Data Documentation

◆ format_

GLenum ACG::Texture1D::format_
private

Definition at line 384 of file globjects.hh.

◆ type_

GLenum ACG::Texture1D::type_
private

Definition at line 384 of file globjects.hh.

◆ width_

GLsizei ACG::Texture1D::width_
private

Definition at line 383 of file globjects.hh.


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