# TextureStageCollection

from pandac.PandaModules import TextureStageCollection

Class : TextureStageCollection
Description :

## Inheritance:

TextureStageCollection:

## Methods of TextureStageCollection:

TextureStageCollection (Constructor)
addTextureStage
addTextureStagesFrom
clear
findTextureStage
getNumTextureStages
getTextureStage
hasTextureStage
operator +
operator +=
operator =
operator []
output
removeDuplicateTextureStages
removeTextureStage
removeTextureStagesFrom
size
sort
write

TextureStageCollection TextureStageCollection::TextureStageCollection(void); Description:

addTextureStage void TextureStageCollection::add_texture_stage(TextureStage *node_texture_stage); Description: Adds a new TextureStage to the collection.

addTextureStagesFrom void TextureStageCollection::add_texture_stages_from(TextureStageCollection const &other); Description: Adds all the TextureStages indicated in the other collection to this texture_stage. The other texture_stages are simply appended to the end of the texture_stages in this list; duplicates are not automatically removed.

clear void TextureStageCollection::clear(void); Description: Removes all TextureStages from the collection.

findTextureStage TextureStage *TextureStageCollection::find_texture_stage(string const &name) const; Description: Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name.

getNumTextureStages int TextureStageCollection::get_num_texture_stages(void) const; Description: Returns the number of TextureStages in the collection.

getTextureStage TextureStage *TextureStageCollection::get_texture_stage(int index) const; Description: Returns the nth TextureStage in the collection.

hasTextureStage bool TextureStageCollection::has_texture_stage(TextureStage *texture_stage) const; Description: Returns true if the indicated TextureStage appears in this collection, false otherwise.

operator + TextureStageCollection TextureStageCollection::operator +(TextureStageCollection const &other) const; Description: Returns a TextureStageCollection representing the concatenation of the two lists.

operator += void TextureStageCollection::operator +=(TextureStageCollection const &other); Description: Appends the other list onto the end of this one.

operator = void TextureStageCollection::operator =(TextureStageCollection const &copy); Description:

operator [] TextureStage *TextureStageCollection::operator [](int index) const; Description: Returns the nth TextureStage in the collection. This is the same as get_texture_stage(), but it may be a more convenient way to access it.

output void TextureStageCollection::output(ostream &out) const; Description: Writes a brief one-line description of the TextureStageCollection to the indicated output stream.

removeDuplicateTextureStages void TextureStageCollection::remove_duplicate_texture_stages(void); Description: Removes any duplicate entries of the same TextureStages on this collection. If a TextureStage appears multiple times, the first appearance is retained; subsequent appearances are removed.

removeTextureStage bool TextureStageCollection::remove_texture_stage(TextureStage *node_texture_stage); Description: Removes the indicated TextureStage from the collection. Returns true if the texture_stage was removed, false if it was not a member of the collection.

removeTextureStagesFrom void TextureStageCollection::remove_texture_stages_from(TextureStageCollection const &other); Description: Removes from this collection all of the TextureStages listed in the other collection.

size int TextureStageCollection::size(void) const; Description: Returns the number of texture stages in the collection. This is the same thing as get_num_texture_stages().

sort void TextureStageCollection::sort(void); Description: Sorts the TextureStages in this collection into order by TextureStage::sort(), from lowest to highest.

write void TextureStageCollection::write(ostream &out, int indent_level = (0)) const; Description: Writes a complete multi-line description of the TextureStageCollection to the indicated output stream.