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