Panda3D
 All Classes Functions Variables Enumerations
eggPalettize.h
1 // Filename: eggPalettize.h
2 // Created by: drose (28Nov00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGPALETTIZE_H
16 #define EGGPALETTIZE_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggMultiFilter.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : EggPalettize
24 // Description : This is the program wrapper for egg-palettize, but it
25 // mainly serves to read in all the command-line
26 // parameters and then invoke the Palettizer.
27 ////////////////////////////////////////////////////////////////////
28 class EggPalettize : public EggMultiFilter {
29 public:
30  EggPalettize();
31 
32  virtual bool handle_args(Args &args);
33 
34  void describe_input_file();
35 
36  void run();
37 
38  // The following parameter values specifically relate to textures
39  // and palettes. These values are copied to the Palettizer.
40  bool _got_txa_filename;
41  Filename _txa_filename;
42  bool _got_txa_script;
43  string _txa_script;
44  bool _nodb;
45  string _generated_image_pattern;
46  bool _got_generated_image_pattern;
47  string _map_dirname;
48  bool _got_map_dirname;
49  Filename _shadow_dirname;
50  bool _got_shadow_dirname;
51  Filename _rel_dirname;
52  bool _got_rel_dirname;
53  string _default_groupname;
54  bool _got_default_groupname;
55  string _default_groupdir;
56  bool _got_default_groupdir;
57 
58 private:
59  // The following values control behavior specific to this session.
60  // They're not saved for future sessions.
61  bool _report_pi;
62  bool _report_statistics;
63  bool _all_textures;
64  bool _optimal;
65  bool _omitall;
66  bool _redo_all;
67  bool _redo_eggs;
68  bool _dont_lock_txa;
69 
70  bool _describe_input_file;
71  bool _remove_eggs;
72  Args _remove_egg_list;
73 };
74 
75 #endif
This is the program wrapper for egg-palettize, but it mainly serves to read in all the command-line p...
Definition: eggPalettize.h:28
This is a base class for a program that reads in a number of egg files, operates on them...
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
virtual bool handle_args(Args &args)
Does something with the additional arguments on the command line (after all the -options have been pa...