0.7.0
|
Public Member Functions | |
size_type | base_face () const |
size_type | base_layer () const |
size_type | base_level () const |
void | clear () |
template<typename genType > | |
void | clear (genType const &Texel) |
void * | data () |
template<typename genType > | |
genType * | data () |
void const * | data () const |
template<typename genType > | |
genType const * | data () const |
void * | data (size_type Layer, size_type Face, size_type Level) |
void const * | data (size_type Layer, size_type Face, size_type Level) const |
template<typename genType > | |
genType * | data (size_type Layer, size_type Face, size_type Level) |
template<typename genType > | |
genType const * | data (size_type Layer, size_type Face, size_type Level) const |
dim_type | dimensions (size_type Level=0) const |
bool | empty () const |
size_type | faces () const |
format_type | format () const |
size_type | layers () const |
size_type | levels () const |
size_type | max_face () const |
size_type | max_layer () const |
size_type | max_level () const |
size_type | size () const |
template<typename genType > | |
size_type | size () const |
size_type | size (size_type Level) const |
template<typename genType > | |
size_type | size (size_type Level) const |
target_type | target () const |
texture () | |
texture (target_type Target, format_type Format, dim_type const &Dimensions, size_type Layers, size_type Faces, size_type Levels) | |
texture (texture const &Texture, target_type Target, format_type Format, size_type BaseLayer, size_type MaxLayer, size_type BaseFace, size_type MaxFace, size_type BaseLevel, size_type MaxLevel) | |
texture (texture const &Texture, target_type Target, format_type Format) | |
Protected Member Functions | |
size_type | offset (size_type Layer, size_type Face, size_type Level) const |
Genetic texture class. It can support any target.
Definition at line 37 of file texture.hpp.
texture | ( | texture const & | Texture, |
target_type | Target, | ||
format_type | Format, | ||
size_type | BaseLayer, | ||
size_type | MaxLayer, | ||
size_type | BaseFace, | ||
size_type | MaxFace, | ||
size_type | BaseLevel, | ||
size_type | MaxLevel | ||
) |
Create a texture object by sharing an existing texture storage from another texture instance.
This texture object is effectively a texture view where the layer, the face and the level allows identifying a specific subset of the texture storage source. This texture object is effectively a texture view where the target and format can be reinterpreted with a different compatible texture target and texture format.
Create a texture object by sharing an existing texture storage from another texture instance.
This texture object is effectively a texture view where the target and format can be reinterpreted with a different compatible texture target and texture format.
void clear | ( | genType const & | Texel | ) |
Clear the entire texture storage with Texel which type must match the texture storage format block size If the type of genType doesn't match the type of the texture format, no conversion is performed and the data will be reinterpreted as if is was of the texture format.
size_type size | ( | ) | const |
Return the number of blocks contained in a texture instance storage.
genType size must match the block size conresponding to the texture format.
size_type size | ( | size_type | Level | ) | const |
Return the memory size of a specific level identified by Level.
genType size must match the block size conresponding to the texture format.