Panda3D
 All Classes Functions Variables Enumerations
eggToC.h
1 // Filename: eggToC.h
2 // Created by: drose (03Aug01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGTOC_H
16 #define EGGTOC_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggToSomething.h"
21 
22 #include "pmap.h"
23 
24 class EggNode;
25 class EggVertexPool;
26 class EggBin;
27 
28 ////////////////////////////////////////////////////////////////////
29 // Class : EggToC
30 // Description :
31 ////////////////////////////////////////////////////////////////////
32 class EggToC : public EggToSomething {
33 public:
34  EggToC();
35 
36  void run();
37 
38  void traverse(EggNode *node);
39  void write_vertex_pool(EggVertexPool *vpool);
40  void write_bin(EggBin *bin);
41 
42  bool _vertices;
43  bool _uvs;
44  bool _vertex_normals;
45  bool _vertex_colors;
46  bool _polygons;
47  bool _polygon_normals;
48  bool _polygon_colors;
49 
50  bool _triangulate_polygons;
51 
53  VertexPools _vertex_pools;
54  int _next_vpool_index;
55  int _next_bin_index;
56 };
57 
58 #endif
Definition: eggToC.h:32
This is the general base class for a file-converter program that reads some model file format and gen...
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:38
A collection of vertices.
Definition: eggVertexPool.h:46
A type of group node that holds related subnodes.
Definition: eggBin.h:30