Panda3D
xFileVertex.h
1 // Filename: xFileVertex.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 XFILEVERTEX_H
16 #define XFILEVERTEX_H
17 
18 #include "pandatoolbase.h"
19 #include "luse.h"
20 
21 class EggVertex;
22 class EggPrimitive;
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : XFileVertex
26 // Description : This represents a single vertex associated with an
27 // XFileFace.
28 ////////////////////////////////////////////////////////////////////
29 class XFileVertex {
30 public:
31  XFileVertex();
32  void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_poly);
33  int compare_to(const XFileVertex &other) const;
34 
35  LVertexd _point;
36  LTexCoordd _uv;
37  LColor _color;
38  bool _has_color;
39  bool _has_uv;
40 };
41 
42 #endif
43 
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
Definition: eggPrimitive.h:51
This is a two-component point in space.
Definition: lpoint2.h:424
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_poly)
Sets the structure up from the indicated egg data.
Definition: xFileVertex.cxx:40
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal...
Definition: eggVertex.h:41
This represents a single vertex associated with an XFileFace.
Definition: xFileVertex.h:29
This is the base class for all three-component vectors and points.
Definition: lvecBase4.h:111
An STL function object class, this is intended to be used on any ordered collection of class objects ...
Definition: stl_compares.h:79
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:544