Panda3D
|
00001 // Filename: eggPalettize.h 00002 // Created by: drose (28Nov00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGPALETTIZE_H 00016 #define EGGPALETTIZE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "eggMultiFilter.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : EggPalettize 00024 // Description : This is the program wrapper for egg-palettize, but it 00025 // mainly serves to read in all the command-line 00026 // parameters and then invoke the Palettizer. 00027 //////////////////////////////////////////////////////////////////// 00028 class EggPalettize : public EggMultiFilter { 00029 public: 00030 EggPalettize(); 00031 00032 virtual bool handle_args(Args &args); 00033 00034 void describe_input_file(); 00035 00036 void run(); 00037 00038 // The following parameter values specifically relate to textures 00039 // and palettes. These values are copied to the Palettizer. 00040 bool _got_txa_filename; 00041 Filename _txa_filename; 00042 bool _got_txa_script; 00043 string _txa_script; 00044 bool _nodb; 00045 string _generated_image_pattern; 00046 bool _got_generated_image_pattern; 00047 string _map_dirname; 00048 bool _got_map_dirname; 00049 Filename _shadow_dirname; 00050 bool _got_shadow_dirname; 00051 Filename _rel_dirname; 00052 bool _got_rel_dirname; 00053 string _default_groupname; 00054 bool _got_default_groupname; 00055 string _default_groupdir; 00056 bool _got_default_groupdir; 00057 00058 private: 00059 // The following values control behavior specific to this session. 00060 // They're not saved for future sessions. 00061 bool _report_pi; 00062 bool _report_statistics; 00063 bool _all_textures; 00064 bool _optimal; 00065 bool _omitall; 00066 bool _redo_all; 00067 bool _redo_eggs; 00068 bool _dont_lock_txa; 00069 00070 bool _describe_input_file; 00071 bool _remove_eggs; 00072 Args _remove_egg_list; 00073 }; 00074 00075 #endif