open_toontown_panda3d/panda/src/egg/eggParameters.h

68 lines
2.3 KiB
C++

// Filename: eggParameters.h
// Created by: drose (16Jan99)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, 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://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#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