14#ifndef TEXTURESTAGECOLLECTION_H
15#define TEXTURESTAGECOLLECTION_H
24class EXPCL_PANDA_PGRAPH TextureStageCollection {
26 TextureStageCollection();
27 TextureStageCollection(
const TextureStageCollection ©);
28 void operator = (
const TextureStageCollection ©);
29 INLINE ~TextureStageCollection();
46 INLINE
void operator += (
const TextureStageCollection &other);
47 INLINE TextureStageCollection operator + (
const TextureStageCollection &other)
const;
51 void output(std::ostream &out)
const;
52 void write(std::ostream &out,
int indent_level = 0)
const;
56 TextureStages _texture_stages;
58 class CompareTextureStageSort {
void remove_duplicate_texture_stages()
Removes any duplicate entries of the same TextureStages on this collection.
void sort()
Sorts the TextureStages in this collection into order by TextureStage::sort(), from lowest to highest...
void remove_texture_stages_from(const TextureStageCollection &other)
Removes from this collection all of the TextureStages listed in the other collection.
int size() const
Returns the number of texture stages in the collection.
bool has_texture_stage(TextureStage *texture_stage) const
Returns true if the indicated TextureStage appears in this collection, false otherwise.
get_texture_stage
Returns the nth TextureStage in the collection.
void write(std::ostream &out, int indent_level=0) const
Writes a complete multi-line description of the TextureStageCollection to the indicated output stream...
void add_texture_stages_from(const TextureStageCollection &other)
Adds all the TextureStages indicated in the other collection to this texture_stage.
bool remove_texture_stage(TextureStage *node_texture_stage)
Removes the indicated TextureStage from the collection.
void output(std::ostream &out) const
Writes a brief one-line description of the TextureStageCollection to the indicated output stream.
void clear()
Removes all TextureStages from the collection.
TextureStage * find_texture_stage(const std::string &name) const
Returns the texture_stage in the collection with the indicated name, if any, or NULL if no texture_st...
get_num_texture_stages
Returns the number of TextureStages in the collection.
void add_texture_stage(TextureStage *node_texture_stage)
Adds a new TextureStage to the collection.
Defines the properties of a named stage of the multitexture pipeline.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.