Panda3D
|
Public Member Functions | |
__init__ () | |
__init__ (const TextureStageCollection copy) | |
addTextureStage (TextureStage node_texture_stage) | |
Adds a new TextureStage to the collection. More... | |
addTextureStagesFrom (const TextureStageCollection other) | |
Adds all the TextureStages indicated in the other collection to this texture_stage. More... | |
clear () | |
Removes all TextureStages from the collection. More... | |
TextureStage | findTextureStage (str name) |
Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name. More... | |
int | getNumTextureStages () |
Returns the number of TextureStages in the collection. More... | |
TextureStage | getTextureStage (int index) |
Returns the nth TextureStage in the collection. More... | |
list | getTextureStages () |
bool | hasTextureStage (TextureStage texture_stage) |
Returns true if the indicated TextureStage appears in this collection, false otherwise. More... | |
TextureStage | operator [] (int index) |
Returns the nth TextureStage in the collection. More... | |
TextureStageCollection | operator+ (const TextureStageCollection other) |
TextureStageCollection | operator+= (const TextureStageCollection other) |
TextureStageCollection | operator= (const TextureStageCollection copy) |
output (Ostream out) | |
Writes a brief one-line description of the TextureStageCollection to the indicated output stream. More... | |
removeDuplicateTextureStages () | |
Removes any duplicate entries of the same TextureStages on this collection. More... | |
bool | removeTextureStage (TextureStage node_texture_stage) |
Removes the indicated TextureStage from the collection. More... | |
removeTextureStagesFrom (const TextureStageCollection other) | |
Removes from this collection all of the TextureStages listed in the other collection. More... | |
int | size () |
Returns the number of texture stages in the collection. More... | |
sort () | |
Sorts the TextureStages in this collection into order by TextureStage::sort(), from lowest to highest. More... | |
write (Ostream out, int indent_level) | |
Writes a complete multi-line description of the TextureStageCollection to the indicated output stream. More... | |
__init__ | ( | ) |
__init__ | ( | const TextureStageCollection | copy | ) |
addTextureStage | ( | TextureStage | node_texture_stage | ) |
Adds a new TextureStage to the collection.
addTextureStagesFrom | ( | const TextureStageCollection | other | ) |
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 | ( | ) |
Removes all TextureStages from the collection.
TextureStage findTextureStage | ( | str | name | ) |
Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name.
int getNumTextureStages | ( | ) |
Returns the number of TextureStages in the collection.
TextureStage getTextureStage | ( | int | index | ) |
Returns the nth TextureStage in the collection.
list getTextureStages | ( | ) |
bool hasTextureStage | ( | TextureStage | texture_stage | ) |
Returns true if the indicated TextureStage appears in this collection, false otherwise.
TextureStage operator [] | ( | int | index | ) |
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.
TextureStageCollection operator+ | ( | const TextureStageCollection | other | ) |
TextureStageCollection operator+= | ( | const TextureStageCollection | other | ) |
TextureStageCollection operator= | ( | const TextureStageCollection | copy | ) |
output | ( | Ostream | out | ) |
Writes a brief one-line description of the TextureStageCollection to the indicated output stream.
removeDuplicateTextureStages | ( | ) |
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.
bool removeTextureStage | ( | TextureStage | node_texture_stage | ) |
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 | ( | const TextureStageCollection | other | ) |
Removes from this collection all of the TextureStages listed in the other collection.
int size | ( | ) |
Returns the number of texture stages in the collection.
This is the same thing as get_num_texture_stages().
sort | ( | ) |
Sorts the TextureStages in this collection into order by TextureStage::sort(), from lowest to highest.
write | ( | Ostream | out, |
int | indent_level | ||
) |
Writes a complete multi-line description of the TextureStageCollection to the indicated output stream.