15 #include "eggUtilities.h" 16 #include "eggPrimitive.h" 17 #include "eggGroupNode.h" 18 #include "pt_EggTexture.h" 33 if (node->
is_of_type(EggPrimitive::get_class_type())) {
37 for (
int i = 0; i < num_textures; i++) {
39 result[tex->get_filename()].insert(tex);
42 }
else if (node->
is_of_type(EggGroupNode::get_class_type())) {
45 EggGroupNode::const_iterator ci;
46 for (ci = group->begin(); ci != group->end(); ++ci) {
47 get_textures_by_filename(*ci, result);
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
This is our own Panda specialization on the default STL map.
int get_num_textures() const
Returns the number of textures applied to the primitive.
A base class for nodes in the hierarchy that are not leaf nodes.
EggTexture * get_texture() const
Returns the first texture on the primitive, if any, or NULL if there are no textures on the primitive...
A base class for things that may be directly added into the egg hierarchy.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.