Encodes a string name in a hash table, mapping it to a pointer.
This is used to tokenify names so they may be used efficiently in low-level Panda structures, for instance to differentiate the multiple sets of texture coordinates that might be stored on a Geom.
InternalNames are hierarchical, with the '.' used by convention as a separator character. You can construct a single InternalName as a composition of one or more other names, or by giving it a source string directly.
Definition at line 42 of file internalName.h.
| int InternalName::find_ancestor |
( |
const string & |
basename | ) |
const |
| string InternalName::get_net_basename |
( |
int |
n | ) |
const |
Returns the basename of this name prefixed by the indicated number of ancestors.
0 is this name's basename, 1 is parent.basename, 2 is grandparent.parent.basename, and so on.
Definition at line 235 of file internalName.cxx.
Referenced by NodePath::find_all_texcoords().