Panda3D

Loading...
Searching...
No Matches
eggToC.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file eggToC.h
10 * @author drose
11 * @date 2001-08-03
12 */
13
14#ifndef EGGTOC_H
15#define EGGTOC_H
16
17#include "pandatoolbase.h"
18
19#include "eggToSomething.h"
20
21#include "pmap.h"
22
23 class EggNode;
24 class EggVertexPool;
25 class EggBin;
26
27/**
28 *
29 */
30 class EggToC : public EggToSomething {
31 public:
32 EggToC();
33
34 void run();
35
36 void traverse(EggNode *node);
37 void write_vertex_pool(EggVertexPool *vpool);
38 void write_bin(EggBin *bin);
39
40 bool _vertices;
41 bool _uvs;
42 bool _vertex_normals;
43 bool _vertex_colors;
44 bool _polygons;
45 bool _polygon_normals;
46 bool _polygon_colors;
47
48 bool _triangulate_polygons;
49
50 typedef pmap<EggVertexPool *, int> VertexPools;
51 VertexPools _vertex_pools;
52 int _next_vpool_index;
53 int _next_bin_index;
54};
55
56#endif
EggBin
A type of group node that holds related subnodes.
Definition eggBin.h:26
EggNode
A base class for things that may be directly added into the egg hierarchy.
Definition eggNode.h:36
EggToSomething::EggToSomething
EggToSomething(const std::string &format_name, const std::string &preferred_extension=std::string(), bool allow_last_param=true, bool allow_stdout=true)
The first parameter to the constructor should be the one-word name of the file format that is to be r...
Definition eggToSomething.cxx:22
EggVertexPool
A collection of vertices.
Definition eggVertexPool.h:41
eggToSomething.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pmap.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.