8 #ifndef META_OCEAN_RENDERING_TEXTURES_H
9 #define META_OCEAN_RENDERING_TEXTURES_H
60 inline unsigned int numberTextures()
const;
107 return (
unsigned int)(
textures.size());
This class is the base class for all rendering attribute objects.
Definition: Attribute.h:39
ObjectType
Definition of different object type.
Definition: Object.h:63
This class is the base class for all textures objects.
Definition: Textures.h:39
virtual bool hasAlphaTexture() const
Returns whether at least one texture has at least one alpha pixel.
~Textures() override
Destructs a textures object.
std::vector< TextureRef > TextureObjects
Definition of a vector holding textures.
Definition: Textures.h:45
ObjectType type() const override
Returns the type of this object.
Textures()
Creates a new textures object.
virtual void setTexture(const TextureRef &texture, const unsigned int layerIndex)
Sets the texture for a specified texture layer.
virtual TextureRef texture(const unsigned int layerIndex) const
Returns the texture for a specified texture layer.
virtual void addTexture(const TextureRef &texture)
Adds a texture at the next free position of the texture layer.
TextureObjects textures
Vector holding texture objects.
Definition: Textures.h:102
unsigned int numberTextures() const
Returns the number of specified texture layers.
Definition: Textures.h:105
SmartObjectRef< Textures > TexturesRef
Definition of a smart object reference holding a textures.
Definition: Textures.h:25
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15