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

Public Member Functions

 TextureBuffer (GLenum u=GL_NONE)
 
void setBufferData (size_t _size, const void *_data, GLenum _internalFormat, GLenum _usage=GL_STATIC_DRAW)
 
size_t getBufferSize () const
 
GLuint getBufferId () const
 
GLenum getUsage () const
 
GLenum getFormat () const
 
bool getBufferData (void *_dst)
 
bool getBufferData (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

size_t bufferSize_
 
GLuint buffer_
 
GLenum usage_
 
GLenum fmt_
 

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 513 of file globjects.hh.

Constructor & Destructor Documentation

◆ TextureBuffer()

ACG::TextureBuffer::TextureBuffer ( GLenum  u = GL_NONE)

Definition at line 787 of file globjects.cc.

◆ ~TextureBuffer()

ACG::TextureBuffer::~TextureBuffer ( )

Definition at line 794 of file globjects.cc.

Member Function Documentation

◆ getBufferData() [1/2]

bool ACG::TextureBuffer::getBufferData ( std::vector< char > &  _dst)

Definition at line 842 of file globjects.cc.

◆ getBufferData() [2/2]

bool ACG::TextureBuffer::getBufferData ( void *  _dst)

Definition at line 826 of file globjects.cc.

◆ getBufferId()

GLuint ACG::TextureBuffer::getBufferId ( ) const
inline

Definition at line 528 of file globjects.hh.

◆ getBufferSize()

size_t ACG::TextureBuffer::getBufferSize ( ) const
inline

Definition at line 526 of file globjects.hh.

◆ getFormat()

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

Definition at line 532 of file globjects.hh.

◆ getUsage()

GLenum ACG::TextureBuffer::getUsage ( ) const
inline

Definition at line 530 of file globjects.hh.

◆ setBufferData()

void ACG::TextureBuffer::setBufferData ( size_t  _size,
const void *  _data,
GLenum  _internalFormat,
GLenum  _usage = GL_STATIC_DRAW 
)

Definition at line 799 of file globjects.cc.

Member Data Documentation

◆ buffer_

GLuint ACG::TextureBuffer::buffer_
private

Definition at line 542 of file globjects.hh.

◆ bufferSize_

size_t ACG::TextureBuffer::bufferSize_
private

Definition at line 541 of file globjects.hh.

◆ fmt_

GLenum ACG::TextureBuffer::fmt_
private

Definition at line 544 of file globjects.hh.

◆ usage_

GLenum ACG::TextureBuffer::usage_
private

Definition at line 543 of file globjects.hh.


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