Cinder  0.9.1
Classes | Public Member Functions | List of all members
cinder::gl::TextureData Class Reference

#include <Texture.h>

Classes

struct  Face
 
struct  Level
 

Public Member Functions

 TextureData ()
 
 TextureData (const PboRef &pbo)
 
 ~TextureData ()
 
GLint getWidth () const
 
void setWidth (GLint width)
 
GLint getHeight () const
 
void setHeight (GLint height)
 
GLint getDepth () const
 
void setDepth (GLint depth)
 
GLint getNumFaces () const
 
void setNumFaces (GLint numFaces)
 
bool isCompressed () const
 
GLint getInternalFormat () const
 
void setInternalFormat (GLint internalFormat)
 
GLenum getDataFormat () const
 
void setDataFormat (GLenum dataFormat)
 
GLenum getDataType () const
 
void setDataType (GLenum dataType)
 
GLint getUnpackAlignment () const
 
void setUnpackAlignment (GLint unpackAlignment)
 
const std::array< GLint, 4 > & getSwizzleMask () const
 
void setSwizzleMask (const std::array< GLint, 4 > &swizzleMask)
 
size_t getNumLevels () const
 
const std::vector< Level > & getLevels () const
 
std::vector< Level > & getLevels ()
 
Levelback ()
 
void push_back (const Level &level)
 
void clear ()
 
void allocateDataStore (size_t requireBytes)
 
size_t getDataStoreSize () const
 
void * getDataStorePtr (size_t offset) const
 
void mapDataStore ()
 
void unmapDataStore ()
 

Constructor & Destructor Documentation

cinder::gl::TextureData::TextureData ( )
cinder::gl::TextureData::TextureData ( const PboRef pbo)

Binds the pbo if it's not nullptr.

cinder::gl::TextureData::~TextureData ( )

Unbinds the pbo if it is not nullptr.

Member Function Documentation

GLint cinder::gl::TextureData::getWidth ( ) const
void cinder::gl::TextureData::setWidth ( GLint  width)
GLint cinder::gl::TextureData::getHeight ( ) const
void cinder::gl::TextureData::setHeight ( GLint  height)
GLint cinder::gl::TextureData::getDepth ( ) const
void cinder::gl::TextureData::setDepth ( GLint  depth)
GLint cinder::gl::TextureData::getNumFaces ( ) const
void cinder::gl::TextureData::setNumFaces ( GLint  numFaces)
bool cinder::gl::TextureData::isCompressed ( ) const
GLint cinder::gl::TextureData::getInternalFormat ( ) const
void cinder::gl::TextureData::setInternalFormat ( GLint  internalFormat)
GLenum cinder::gl::TextureData::getDataFormat ( ) const
void cinder::gl::TextureData::setDataFormat ( GLenum  dataFormat)
GLenum cinder::gl::TextureData::getDataType ( ) const
void cinder::gl::TextureData::setDataType ( GLenum  dataType)
GLint cinder::gl::TextureData::getUnpackAlignment ( ) const
void cinder::gl::TextureData::setUnpackAlignment ( GLint  unpackAlignment)
const std::array<GLint,4>& cinder::gl::TextureData::getSwizzleMask ( ) const
void cinder::gl::TextureData::setSwizzleMask ( const std::array< GLint, 4 > &  swizzleMask)
size_t cinder::gl::TextureData::getNumLevels ( ) const
const std::vector<Level>& cinder::gl::TextureData::getLevels ( ) const
std::vector<Level>& cinder::gl::TextureData::getLevels ( )
Level& cinder::gl::TextureData::back ( )
void cinder::gl::TextureData::push_back ( const Level level)
void cinder::gl::TextureData::clear ( )
void cinder::gl::TextureData::allocateDataStore ( size_t  requireBytes)
size_t cinder::gl::TextureData::getDataStoreSize ( ) const
void * cinder::gl::TextureData::getDataStorePtr ( size_t  offset) const
void cinder::gl::TextureData::mapDataStore ( )
void cinder::gl::TextureData::unmapDataStore ( )

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