open_toontown_panda3d/panda/src/egg/eggParameters.h

55 lines
1.8 KiB
C++

// Filename: eggParameters.h
// Created by: drose (16Jan99)
//
////////////////////////////////////////////////////////////////////
#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 &copy);
// 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