Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Static Public Attributes | List of all members
om::graphics::materials::TextureBindingData Class Reference

A class that stores the texture data for a shader program. More...

#include <omGraphicsTextureBindingData.h>

Public Member Functions

 TextureBindingData ()
 Create a new shader binding data object with no allocated data. More...
 
 TextureBindingData (Size textureCapacity)
 Create a new shader binding data object with the specified initial capacity. More...
 
Size getTextureCount () const
 Return an pointer to the internal array of shader textures. More...
 
Texture ** getTextures ()
 Return a pointer to the internal array of shader textures. More...
 
Texture *const * getTextures () const
 Return a const pointer to the internal array of shader textures. More...
 
Texture ** allocateTextures (Size texturesToAdd)
 Allocate the specified number of textures for this shader binding data and return a pointer to the texture storage. More...
 
void clearTextures ()
 Remove all stored textures from this shader binding data object. More...
 
void setData (const TextureBindingData &other)
 Copy all data from the other texture binding data object into this one. More...
 

Static Public Attributes

static const Size DEFAULT_CAPACITY = 4
 The default size of a shader pass's texture array. More...
 

Detailed Description

A class that stores the texture data for a shader program.

Constructor & Destructor Documentation

om::graphics::materials::TextureBindingData::TextureBindingData ( )

Create a new shader binding data object with no allocated data.

om::graphics::materials::TextureBindingData::TextureBindingData ( Size  textureCapacity)

Create a new shader binding data object with the specified initial capacity.

Member Function Documentation

Size om::graphics::materials::TextureBindingData::getTextureCount ( ) const
inline

Return an pointer to the internal array of shader textures.

Texture** om::graphics::materials::TextureBindingData::getTextures ( )
inline

Return a pointer to the internal array of shader textures.

Texture* const* om::graphics::materials::TextureBindingData::getTextures ( ) const
inline

Return a const pointer to the internal array of shader textures.

Texture** om::graphics::materials::TextureBindingData::allocateTextures ( Size  texturesToAdd)
inline

Allocate the specified number of textures for this shader binding data and return a pointer to the texture storage.

void om::graphics::materials::TextureBindingData::clearTextures ( )
inline

Remove all stored textures from this shader binding data object.

void om::graphics::materials::TextureBindingData::setData ( const TextureBindingData other)

Copy all data from the other texture binding data object into this one.

Member Data Documentation

const Size om::graphics::materials::TextureBindingData::DEFAULT_CAPACITY = 4
static

The default size of a shader pass's texture array.


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