Panda3D

eggToC.h

00001 // Filename: eggToC.h
00002 // Created by:  drose (03Aug01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
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 //       Class : EggToC
00030 // Description :
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
 All Classes Functions Variables Enumerations