TextureStageCollection¶
-
class
TextureStageCollection
¶ Inheritance diagram
-
TextureStageCollection
(void)¶
-
TextureStageCollection
(TextureStageCollection const ©)¶
-
void
add_texture_stage
(TextureStage *node_texture_stage)¶ Adds a new
TextureStage
to the collection.
-
void
add_texture_stages_from
(TextureStageCollection const &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.
-
void
clear
(void)¶ Removes all
TextureStages
from the collection.
-
TextureStage *
find_texture_stage
(std::string const &name) const¶ Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_stage has that name.
-
int
get_num_texture_stages
(void) const¶ Returns the number of
TextureStages
in the collection.
-
TextureStage *
get_texture_stage
(int index) const¶ Returns the nth
TextureStage
in the collection.
-
bool
has_texture_stage
(TextureStage *texture_stage) const¶ Returns true if the indicated
TextureStage
appears in this collection, false otherwise.
-
void
output
(std::ostream &out) const¶ Writes a brief one-line description of the
TextureStageCollection
to the indicated output stream.
-
void
remove_duplicate_texture_stages
(void)¶ Removes any duplicate entries of the same
TextureStages
on this collection. If aTextureStage
appears multiple times, the first appearance is retained; subsequent appearances are removed.
-
bool
remove_texture_stage
(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.
-
void
remove_texture_stages_from
(TextureStageCollection const &other)¶ Removes from this collection all of the
TextureStages
listed in the other collection.
-
int
size
(void) const¶ Returns the number of texture stages in the collection. This is the same thing as
get_num_texture_stages()
.
-
void
sort
(void)¶ Sorts the
TextureStages
in this collection into order by TextureStage::sort(), from lowest to highest.
-
void
write
(std::ostream &out, int indent_level = 0) const¶ Writes a complete multi-line description of the
TextureStageCollection
to the indicated output stream.
-