Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pandatool/src/eggprogs/eggToC.h

Go to the documentation of this file.
00001 // Filename: eggToC.h
00002 // Created by:  drose (03Aug01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef EGGTOC_H
00020 #define EGGTOC_H
00021 
00022 #include "pandatoolbase.h"
00023 
00024 #include "eggToSomething.h"
00025 
00026 #include "pmap.h"
00027 
00028 class EggNode;
00029 class EggVertexPool;
00030 class EggBin;
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //       Class : EggToC
00034 // Description :
00035 ////////////////////////////////////////////////////////////////////
00036 class EggToC : public EggToSomething {
00037 public:
00038   EggToC();
00039 
00040   void run();
00041 
00042   void traverse(EggNode *node);
00043   void write_vertex_pool(EggVertexPool *vpool);
00044   void write_bin(EggBin *bin);
00045 
00046   bool _vertices;
00047   bool _uvs;
00048   bool _vertex_normals;
00049   bool _vertex_colors;
00050   bool _polygons;
00051   bool _polygon_normals;
00052   bool _polygon_colors;
00053 
00054   bool _triangulate_polygons;
00055 
00056   typedef pmap<EggVertexPool *, int> VertexPools;
00057   VertexPools _vertex_pools;
00058   int _next_vpool_index;
00059   int _next_bin_index;
00060 };
00061 
00062 #endif

Generated on Fri May 2 03:18:53 2003 for Panda-Tool by doxygen1.3