TextureStageCollection
from panda3d.core import TextureStageCollection
- class TextureStageCollection
Bases:
Inheritance diagram
- __add__(other: TextureStageCollection) TextureStageCollection
- __getitem__(index: int) TextureStage
Returns the nth
TextureStagein the collection. This is the same asget_texture_stage(), but it may be a more convenient way to access it.
- __iadd__(other: TextureStageCollection) TextureStageCollection
- __init__()
- __init__(copy: TextureStageCollection)
- add_texture_stage(node_texture_stage: TextureStage)
Adds a new
TextureStageto the collection.
- add_texture_stages_from(other: TextureStageCollection)
Adds all the
TextureStagesindicated 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.
- assign(copy: TextureStageCollection) TextureStageCollection
- clear()
Removes all
TextureStagesfrom the collection.
- find_texture_stage(name: str) TextureStage
Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name.
- get_num_texture_stages() int
Returns the number of
TextureStagesin the collection.
- get_texture_stage(index: int) TextureStage
Returns the nth
TextureStagein the collection.
- has_texture_stage(texture_stage: TextureStage) bool
Returns true if the indicated
TextureStageappears in this collection, false otherwise.
- output(out: ostream)
Writes a brief one-line description of the
TextureStageCollectionto the indicated output stream.
- remove_duplicate_texture_stages()
Removes any duplicate entries of the same
TextureStageson this collection. If aTextureStageappears multiple times, the first appearance is retained; subsequent appearances are removed.
- remove_texture_stage(node_texture_stage: TextureStage) bool
Removes the indicated
TextureStagefrom the collection. Returns true if the texture_stage was removed, false if it was not a member of the collection.
- remove_texture_stages_from(other: TextureStageCollection)
Removes from this collection all of the
TextureStageslisted in the other collection.
- size() int
Returns the number of texture stages in the collection. This is the same thing as
get_num_texture_stages().
- sort()
Sorts the
TextureStagesin this collection into order by TextureStage::sort(), from lowest to highest.
- write(out: ostream, indent_level: int)
Writes a complete multi-line description of the
TextureStageCollectionto the indicated output stream.
