29 if (node->
is_of_type(EggPrimitive::get_class_type())) {
33 for (
int i = 0; i < num_textures; i++) {
35 result[tex->get_filename()].insert(tex);
38 }
else if (node->
is_of_type(EggGroupNode::get_class_type())) {
41 EggGroupNode::const_iterator ci;
42 for (ci = group->begin(); ci != group->end(); ++ci) {
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.
A base class for nodes in the hierarchy that are not leaf nodes.
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.
void get_textures_by_filename(const EggNode *node, EggTextureFilenames &result)
Extracts from the egg subgraph beginning at the indicated node a set of all the texture objects refer...
get_num_textures
Returns the number of textures applied to the primitive.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things that may be directly added into the egg hierarchy.
get_texture
Returns the first texture on the primitive, if any, or NULL if there are no textures on the primitive...
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.