00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef EGGTOC_H
00016 #define EGGTOC_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "eggToSomething.h"
00021
00022 #include "pmap.h"
00023
00024 class EggNode;
00025 class EggVertexPool;
00026 class EggBin;
00027
00028
00029
00030
00031
00032 class EggToC : public EggToSomething {
00033 public:
00034 EggToC();
00035
00036 void run();
00037
00038 void traverse(EggNode *node);
00039 void write_vertex_pool(EggVertexPool *vpool);
00040 void write_bin(EggBin *bin);
00041
00042 bool _vertices;
00043 bool _uvs;
00044 bool _vertex_normals;
00045 bool _vertex_colors;
00046 bool _polygons;
00047 bool _polygon_normals;
00048 bool _polygon_colors;
00049
00050 bool _triangulate_polygons;
00051
00052 typedef pmap<EggVertexPool *, int> VertexPools;
00053 VertexPools _vertex_pools;
00054 int _next_vpool_index;
00055 int _next_bin_index;
00056 };
00057
00058 #endif