#include <TextureAttribute.h>
Inheritance diagram for nvsg::TextureAttribute:
Public Types | |
enum | { INVALID_ITEM = 0xFFFFFFFF } |
Public Member Functions | |
virtual NVSG_API const TextureAttribute * | clone (void) const |
Get a clone of this texture attribute. | |
virtual NVSG_API bool | isDataShared (void) const |
Determine whether the data of this object is shared. | |
virtual NVSG_API DataID | getDataID (void) const |
Get the DataID of the data of this object. | |
NVSG_API void | bindTextureAttributeItem (const TextureAttributeItem *item, size_t unit) |
Bind texture attribute item. | |
NVSG_API void | unbindTextureAttributeItem (size_t unit) |
Unbind texture attribute item. | |
NVSG_API size_t | getFirstItem (void) const |
Get first item. | |
NVSG_API size_t | getNextItem (void) const |
Get next item. | |
NVSG_API size_t | getNumberOfItems (void) const |
Get number of item. | |
NVSG_API const TextureAttributeItem * | getTextureAttributeItem (size_t unit) const |
Get texture attribute item. | |
Static Public Member Functions | |
static NVSG_API const TextureAttribute * | create (void) |
Create a TextureAttribute. | |
static NVSG_API const TextureAttribute * | createFromBase (const StateAttribute &rhs) |
Create a TextureAttribute by copying from a StateAttribute. | |
Protected Member Functions | |
NVSG_API | TextureAttribute (void) |
Default Constructor. | |
NVSG_API | TextureAttribute (const StateAttribute &rhs) |
Partial Constructor. | |
NVSG_API | TextureAttribute (const TextureAttribute &rhs) |
Copy constructor. | |
virtual NVSG_API | ~TextureAttribute (void) |
Protected destructor to prevent explicit creation on stack. |
This maintains bindings between abstract texture units and TextureAttributeItem
objects. For this purpose it provides an interface to bind a certain TextureAttributeItem
to a specified texture unit or to unbind a TextureAttributeItem
from a certain texture unit. It also provides an interface to iterate through all bounded TextureAttributeItem
objects.
StateAttribute
, a TextureAttribute
can be added to a StateSet
of a certain GeoNode
for texturing purposes.
|
Default Constructor.
|
|
Partial Constructor.
|
|
Copy constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create a TextureAttribute.
|
|
Create a TextureAttribute by copying from a StateAttribute.
|
|
Get a clone of this texture attribute.
Implements nvsg::StateAttribute. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::StateAttribute. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::StateAttribute. |
|
Bind texture attribute item. This binds the texture attribute item pointed to by item to the texture unit specified by unit. A texture attribute that was bound to that texture unit prior to this call, will be unbound.
|
|
Unbind texture attribute item. Unbind the texture attribute item currently bound to the texture unit specified by unit. Immediately after this call, no texture attribute item is bound to that unit.
|
|
Get first item.
This is thought to initiate iteration of bounded texture attribute items. Use this in conjunction with
|
|
Get next item. This is thought to pursue iteration of bounded texture attribute items.
|
|
Get number of item.
|
|
Get texture attribute item.
|