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