Panda3D
xFileVertexPool.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 xFileVertexPool.h
10  * @author drose
11  * @date 2001-06-19
12  */
13 
14 #ifndef XFILEVERTEXPOOL_H
15 #define XFILEVERTEXPOOL_H
16 
17 #include "pandatoolbase.h"
18 
19 /**
20  * This is a collection of unique vertices as extracted out of a Geom or a
21  * series of Geoms.
22  */
24 public:
26  ~XFileVertexPool();
27 
28  int add_vertex(const XFileVertex &vertex);
29 
30  int get_num_vertices();
31  const LVertex *get_vertices();
32  const LNormal *get_normals();
33  const LTexCoord *get_uvs();
34  const LColor *get_colors();
35 
36 
37 
38  void set_normal(const LNormal &normal);
39  void set_uv(const LTexCoord &uv);
40  void set_color(const LColor &color);
41 
42  bool operator < (const XFileVertexPool &other) const;
43 
44 private:
45  LVertex _point;
46  LNormal _normal;
47  LTexCoord _uv;
48  LColor _color;
49 };
50 
51 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a collection of unique vertices as extracted out of a Geom or a series of Geoms.
This represents a single vertex associated with an XFileFace.
Definition: xFileVertex.h:26