Panda3D
 All Classes Functions Variables Enumerations
eggParameters.h
00001 // Filename: eggParameters.h
00002 // Created by:  drose (16Jan99)
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 EGGPARAMETERS_H
00016 #define EGGPARAMETERS_H
00017 
00018 #include "pandabase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : EggParameters
00022 // Description : The values stored in this structure are global
00023 //               parameters that control some aspects of the egg
00024 //               library.  User code may adjust these parameters by
00025 //               meddling with the values in structure directly, or by
00026 //               fiddling with the pointer to completely replace the
00027 //               structure.
00028 //
00029 //               However, these parameters should not be changed at
00030 //               any time during the processing of any egg structure:
00031 //               set the parameters, load an egg file, process it, and
00032 //               write the egg file out again before resetting the
00033 //               parameters again.
00034 ////////////////////////////////////////////////////////////////////
00035 class EXPCL_PANDAEGG EggParameters {
00036 public:
00037   EggParameters();
00038   EggParameters(const EggParameters &copy);
00039 
00040   // The per-component difference below which two vertices are deemed
00041   // to be at the same position.
00042   double _pos_threshold;
00043 
00044   // The per-component difference below which two vertices are deemed
00045   // to have the same normal.
00046   double _normal_threshold;
00047 
00048   // The per-component difference below which two vertices are deemed
00049   // to have the same texture coordinates.
00050   double _uv_threshold;
00051 
00052   // The per-component difference below which two vertices are deemed
00053   // to have the same color.
00054   PN_stdfloat _color_threshold;
00055 
00056   // The per-component difference below which two anim table values
00057   // are deemed to be equivalent.
00058   double _table_threshold;
00059 };
00060 
00061 extern EggParameters *egg_parameters;
00062 
00063 #endif
 All Classes Functions Variables Enumerations