eggParameters.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Filename: eggParameters.h
  2. // Created by: drose (16Jan99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef EGGPARAMETERS_H
  19. #define EGGPARAMETERS_H
  20. #include "pandabase.h"
  21. ////////////////////////////////////////////////////////////////////
  22. // Class : EggParameters
  23. // Description : The values stored in this structure are global
  24. // parameters that control some aspects of the egg
  25. // library. User code may adjust these parameters by
  26. // meddling with the values in structure directly, or by
  27. // fiddling with the pointer to completely replace the
  28. // structure.
  29. //
  30. // However, these parameters should not be changed at
  31. // any time during the processing of any egg structure:
  32. // set the parameters, load an egg file, process it, and
  33. // write the egg file out again before resetting the
  34. // parameters again.
  35. ////////////////////////////////////////////////////////////////////
  36. class EXPCL_PANDAEGG EggParameters {
  37. public:
  38. EggParameters();
  39. EggParameters(const EggParameters &copy);
  40. // The per-component difference below which two vertices are deemed
  41. // to be at the same position.
  42. double _pos_threshold;
  43. // The per-component difference below which two vertices are deemed
  44. // to have the same normal.
  45. double _normal_threshold;
  46. // The per-component difference below which two vertices are deemed
  47. // to have the same texture coordinates.
  48. double _uv_threshold;
  49. // The per-component difference below which two vertices are deemed
  50. // to have the same color.
  51. float _color_threshold;
  52. // The per-component difference below which two anim table values
  53. // are deemed to be equivalent.
  54. double _table_threshold;
  55. };
  56. extern EggParameters *egg_parameters;
  57. #endif