TextureCollection

Inheritance:

Methods of TextureCollection:

TextureCollection
TextureCollection::TextureCollection(void);

Description:

addTexture
void TextureCollection::add_texture(Texture *node_texture);

Description: Adds a new Texture to the collection.

addTexturesFrom
void TextureCollection::add_textures_from(TextureCollection const &other);

Description: Adds all the Textures indicated in the other collection to this texture. The other textures are simply appended to the end of the textures in this list; duplicates are not automatically removed.

clear
void TextureCollection::clear(void);

Description: Removes all Textures from the collection.

findTexture
Texture *TextureCollection::find_texture(string const &name) const;

Description: Returns the texture in the collection with the indicated name, if any, or NULL if no texture has that name.

getNumTextures
int TextureCollection::get_num_textures(void) const;

Description: Returns the number of Textures in the collection.

getTexture
Texture *TextureCollection::get_texture(int index) const;

Description: Returns the nth Texture in the collection.

hasTexture
bool TextureCollection::has_texture(Texture *texture) const;

Description: Returns true if the indicated Texture appears in this collection, false otherwise.

operator =
void TextureCollection::operator =(TextureCollection const &copy);

Description:

operator []
Texture *TextureCollection::operator [](int index) const;

Description: Returns the nth Texture in the collection. This is the same as get_texture(), but it may be a more convenient way to access it.

output
void TextureCollection::output(ostream &out) const;

Description: Writes a brief one-line description of the TextureCollection to the indicated output stream.

removeDuplicateTextures
void TextureCollection::remove_duplicate_textures(void);

Description: Removes any duplicate entries of the same Textures on this collection. If a Texture appears multiple times, the first appearance is retained; subsequent appearances are removed.

removeTexture
bool TextureCollection::remove_texture(Texture *node_texture);

Description: Removes the indicated Texture from the collection. Returns true if the texture was removed, false if it was not a member of the collection.

removeTexturesFrom
void TextureCollection::remove_textures_from(TextureCollection const &other);

Description: Removes from this collection all of the Textures listed in the other collection.

write
void TextureCollection::write(ostream &out, int indent_level = (0)) const;

Description: Writes a complete multi-line description of the TextureCollection to the indicated output stream.