panda3d.core.TextureStageCollection

class TextureStageCollection

Inheritance diagram

Inheritance diagram of TextureStageCollection

__init__() → None
__init__(copy: TextureStageCollection) → None
assign(copy: TextureStageCollection) → TextureStageCollection
Return type

TextureStageCollection

addTextureStage(node_texture_stage: TextureStage) → None

Adds a new TextureStage to the collection.

removeTextureStage(node_texture_stage: TextureStage) → bool

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.

addTextureStagesFrom(other: TextureStageCollection) → None

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.

removeTextureStagesFrom(other: TextureStageCollection) → None

Removes from this collection all of the TextureStages listed in the other collection.

removeDuplicateTextureStages() → None

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.

hasTextureStage(texture_stage: TextureStage) → bool

Returns true if the indicated TextureStage appears in this collection, false otherwise.

clear() → None

Removes all TextureStages from the collection.

findTextureStage(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.

Return type

TextureStage

getNumTextureStages() → int

Returns the number of TextureStages in the collection.

getTextureStage(index: int) → TextureStage

Returns the nth TextureStage in the collection.

Return type

TextureStage

size() → int

Returns the number of texture stages in the collection. This is the same thing as getNumTextureStages().

sort() → None

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

output(out: ostream) → None

Writes a brief one-line description of the TextureStageCollection to the indicated output stream.

write(out: ostream, indent_level: int) → None

Writes a complete multi-line description of the TextureStageCollection to the indicated output stream.

getTextureStages() → list