Panda3D
 All Classes Functions Variables Enumerations
xFileNormal.h
1 // Filename: xFileNormal.h
2 // Created by: drose (19Jun01)
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 XFILENORMAL_H
16 #define XFILENORMAL_H
17 
18 #include "pandatoolbase.h"
19 #include "luse.h"
20 
21 class EggVertex;
22 class EggPrimitive;
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : XFileNormal
26 // Description : This represents a single normal associated with an
27 // XFileFace. It is separate from XFileVertex, because
28 // the X syntax supports a different table of normals
29 // than that of vertices.
30 ////////////////////////////////////////////////////////////////////
31 class XFileNormal {
32 public:
33  XFileNormal();
34  void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim);
35  int compare_to(const XFileNormal &other) const;
36 
37  LNormald _normal;
38  bool _has_normal;
39 };
40 
41 #endif
42 
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
Definition: eggPrimitive.h:51
This represents a single normal associated with an XFileFace.
Definition: xFileNormal.h:31
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim)
Sets the structure up from the indicated egg data.
Definition: xFileNormal.cxx:37
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal...
Definition: eggVertex.h:41
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:746
An STL function object class, this is intended to be used on any ordered collection of class objects ...
Definition: stl_compares.h:79