// Filename: eggPalettize.h
// Created by:  drose (28Nov00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc.  All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license.  You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://etc.cmu.edu/panda3d/docs/license/ .
//
// To contact the maintainers of this program write to
// panda3d-general@lists.sourceforge.net .
//
////////////////////////////////////////////////////////////////////

#ifndef EGGPALETTIZE_H
#define EGGPALETTIZE_H

#include "pandatoolbase.h"

#include "eggMultiFilter.h"

////////////////////////////////////////////////////////////////////
//       Class : EggPalettize
// Description : This is the program wrapper for egg-palettize, but it
//               mainly serves to read in all the command-line
//               parameters and then invoke the Palettizer.
////////////////////////////////////////////////////////////////////
class EggPalettize : public EggMultiFilter {
public:
  EggPalettize();

  virtual bool handle_args(Args &args);

  void describe_input_file();

  void run();

  // The following parameter values specifically relate to textures
  // and palettes.  These values are copied to the Palettizer.
  bool _got_txa_filename;
  Filename _txa_filename;
  bool _got_txa_script;
  string _txa_script;
  bool _nodb;
  string _generated_image_pattern;
  bool _got_generated_image_pattern;
  string _map_dirname;
  bool _got_map_dirname;
  Filename _shadow_dirname;
  bool _got_shadow_dirname;
  Filename _rel_dirname;
  bool _got_rel_dirname;
  string _default_groupname;
  bool _got_default_groupname;
  string _default_groupdir;
  bool _got_default_groupdir;

private:
  // The following values control behavior specific to this session.
  // They're not saved for future sessions.
  bool _report_pi;
  bool _report_statistics;
  bool _all_textures;
  bool _optimal;
  bool _redo_all;
  bool _redo_eggs;
  bool _dont_lock_txa;

  bool _describe_input_file;
  bool _remove_eggs;
  Args _remove_egg_list;
};

#endif
