14 #ifndef EGGMATERIALCOLLECTION_H
15 #define EGGMATERIALCOLLECTION_H
38 typedef vector_PT_EggMaterial OrderedMaterials;
41 typedef OrderedMaterials::const_iterator iterator;
42 typedef iterator const_iterator;
43 typedef OrderedMaterials::size_type size_type;
60 EggGroupNode::iterator insert_materials(
EggGroupNode *node);
61 EggGroupNode::iterator insert_materials(
EggGroupNode *node, EggGroupNode::iterator position);
64 int find_used_materials(
EggNode *node);
65 void remove_unused_materials(
EggNode *node);
67 int collapse_equivalent_materials(
int eq,
EggGroupNode *node);
72 void uniquify_mrefs();
78 INLINE iterator begin()
const;
79 INLINE iterator end()
const;
80 INLINE
bool empty()
const;
81 INLINE size_type size()
const;
93 EggMaterial *find_mref(
const std::string &mref_name)
const;
97 OrderedMaterials _ordered_materials;
A base class for nodes in the hierarchy that are not leaf nodes.
This is a collection of materials by MRef name.
A base class for things that may be directly added into the egg hierarchy.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.