Panda3D
 All Classes Functions Variables Enumerations
eggToX.h
1 // Filename: eggToX.h
2 // Created by: drose (19Jun01)
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 EGGTOX_H
16 #define EGGTOX_H
17 
18 #include "pandatoolbase.h"
19 #include "eggToSomething.h"
20 #include "xFileMaker.h"
21 
22 #include "programBase.h"
23 #include "withOutputFile.h"
24 #include "filename.h"
25 
26 class Node;
27 
28 ////////////////////////////////////////////////////////////////////
29 // Class : EggToX
30 // Description : A program to read in a egg file and write an
31 // equivalent, or nearly equivalent, DirectX-style "x"
32 // file.
33 ////////////////////////////////////////////////////////////////////
34 class EggToX : public EggToSomething {
35 public:
36  EggToX();
37 
38  void run();
39 
40 private:
41  void convert_scene_graph(Node *root);
42 
43  Filename _input_filename;
44  XFileMaker _x;
45 };
46 
47 #endif
A program to read in a egg file and write an equivalent, or nearly equivalent, DirectX-style "x" file...
Definition: eggToX.h:34
This class is used to assign the nodes on the mesh.
Definition: meshNode.h:18
This class converts a Panda scene graph into a .X file and writes it out.
Definition: xFileMaker.h:39
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
This is the general base class for a file-converter program that reads some model file format and gen...