23 set_program_brief(
"list textures referenced by an .egg file");
24 set_program_description
25 (
"egg-list-textures reads an egg file and writes a list of the " 26 "textures it references. It is particularly useful for building " 27 "up the textures.txa file used for egg-palettize, since the output " 28 "format is crafted to be compatible with that file's input format.");
34 void EggListTextures::
36 if (!do_reader_options()) {
46 EggTextureCollection::iterator ti;
47 for (ti = tc.begin(); ti != tc.end(); ++ti) {
60 int main(
int argc,
char *argv[]) {
int collapse_equivalent_textures(int eq, EggGroupNode *node)
Walks through the collection and collapses together any separate textures that are equivalent accordi...
This is our own Panda specialization on the default STL map.
virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
This is a collection of textures by TRef name.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
std::string get_fullpath() const
Returns the entire filename: directory, basename, extension.
void sort_by_basename()
Sorts all the textures into alphabetical order by the basename part (including extension) of the file...
int find_used_textures(EggNode *node)
Walks the egg hierarchy beginning at the indicated node, looking for textures that are referenced by ...
std::string get_basename() const
Returns the basename part of the filename.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Reads an egg file and outputs the list of textures it uses.