| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // Filename: eggParameters.h
- // Created by: drose (16Jan99)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // 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
- // [email protected] .
- //
- ////////////////////////////////////////////////////////////////////
- #ifndef EGGPARAMETERS_H
- #define EGGPARAMETERS_H
- #include "pandabase.h"
- ////////////////////////////////////////////////////////////////////
- // Class : EggParameters
- // Description : The values stored in this structure are global
- // parameters that control some aspects of the egg
- // library. User code may adjust these parameters by
- // meddling with the values in structure directly, or by
- // fiddling with the pointer to completely replace the
- // structure.
- //
- // However, these parameters should not be changed at
- // any time during the processing of any egg structure:
- // set the parameters, load an egg file, process it, and
- // write the egg file out again before resetting the
- // parameters again.
- ////////////////////////////////////////////////////////////////////
- class EXPCL_PANDAEGG EggParameters {
- public:
- EggParameters();
- EggParameters(const EggParameters ©);
- // The per-component difference below which two vertices are deemed
- // to be at the same position.
- double _pos_threshold;
- // The per-component difference below which two vertices are deemed
- // to have the same normal.
- double _normal_threshold;
- // The per-component difference below which two vertices are deemed
- // to have the same texture coordinates.
- double _uv_threshold;
- // The per-component difference below which two vertices are deemed
- // to have the same color.
- float _color_threshold;
- // The per-component difference below which two anim table values
- // are deemed to be equivalent.
- double _table_threshold;
- };
- extern EggParameters *egg_parameters;
- #endif
|