00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef XFILEVERTEXPOOL_H
00016 #define XFILEVERTEXPOOL_H
00017
00018 #include "pandatoolbase.h"
00019
00020
00021
00022
00023
00024
00025 class XFileVertexPool {
00026 public:
00027 XFileVertexPool();
00028 ~XFileVertexPool();
00029
00030 int add_vertex(const XFileVertex &vertex);
00031
00032 int get_num_vertices();
00033 const LVertex *get_vertices();
00034 const LNormal *get_normals();
00035 const LTexCoord *get_uvs();
00036 const LColor *get_colors();
00037
00038
00039
00040 void set_normal(const LNormal &normal);
00041 void set_uv(const LTexCoord &uv);
00042 void set_color(const LColor &color);
00043
00044 bool operator < (const XFileVertexPool &other) const;
00045
00046 private:
00047 LVertex _point;
00048 LNormal _normal;
00049 LTexCoord _uv;
00050 LColor _color;
00051 };
00052
00053 #endif
00054