Panda3D

xFileNormal.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file xFileNormal.h
10 * @author drose
11 * @date 2001-06-19
12 */
13
14 #ifndef XFILENORMAL_H
15 #define XFILENORMAL_H
16
17 #include "pandatoolbase.h"
18 #include "luse.h"
19
20 class EggVertex;
21 class EggPrimitive;
22
23 /**
24 * This represents a single normal associated with an XFileFace. It is
25 * separate from XFileVertex, because the X syntax supports a different table
26 * of normals than that of vertices.
27 */
28 class XFileNormal {
29 public:
30 XFileNormal();
31 void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim);
32 int compare_to(const XFileNormal &other) const;
33
34 LNormald _normal;
35 bool _has_normal;
36 };
37
38 #endif
EggPrimitive
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
Definition: eggPrimitive.h:49
EggVertex
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
Definition: eggVertex.h:39
XFileNormal
This represents a single normal associated with an XFileFace.
Definition: xFileNormal.h:28
XFileNormal::set_from_egg
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim)
Sets the structure up from the indicated egg data.
Definition: xFileNormal.cxx:32
compare_to
An STL function object class, this is intended to be used on any ordered collection of class objects ...
Definition: stl_compares.h:73
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.