Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
egg
eggParameters.h
1
// Filename: eggParameters.h
2
// Created by: drose (16Jan99)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef EGGPARAMETERS_H
16
#define EGGPARAMETERS_H
17
18
#include "pandabase.h"
19
20
#include "numeric_types.h"
21
22
////////////////////////////////////////////////////////////////////
23
// Class : EggParameters
24
// Description : The values stored in this structure are global
25
// parameters that control some aspects of the egg
26
// library. User code may adjust these parameters by
27
// meddling with the values in structure directly, or by
28
// fiddling with the pointer to completely replace the
29
// structure.
30
//
31
// However, these parameters should not be changed at
32
// any time during the processing of any egg structure:
33
// set the parameters, load an egg file, process it, and
34
// write the egg file out again before resetting the
35
// parameters again.
36
////////////////////////////////////////////////////////////////////
37
class
EXPCL_PANDAEGG
EggParameters
{
38
public
:
39
EggParameters
();
40
EggParameters
(
const
EggParameters
©);
41
42
// The per-component difference below which two vertices are deemed
43
// to be at the same position.
44
double
_pos_threshold;
45
46
// The per-component difference below which two vertices are deemed
47
// to have the same normal.
48
double
_normal_threshold;
49
50
// The per-component difference below which two vertices are deemed
51
// to have the same texture coordinates.
52
double
_uv_threshold;
53
54
// The per-component difference below which two vertices are deemed
55
// to have the same color.
56
PN_stdfloat _color_threshold;
57
58
// The per-component difference below which two anim table values
59
// are deemed to be equivalent.
60
double
_table_threshold;
61
};
62
63
extern
EXPCL_PANDAEGG
EggParameters
*egg_parameters;
64
65
#endif
EggParameters
The values stored in this structure are global parameters that control some aspects of the egg librar...
Definition:
eggParameters.h:37
Generated on Mon Feb 1 2016 13:44:22 for Panda3D by
1.8.5