Panda3D
 All Classes Functions Variables Enumerations
save_egg_file.h
1 // Filename: save_egg_file.h
2 // Created by: drose (19Dec12)
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 SAVE_EGG_FILE_H
16 #define SAVE_EGG_FILE_H
17 
18 #include "pandabase.h"
19 
20 #include "pandaNode.h"
21 #include "coordinateSystem.h"
22 #include "eggData.h"
23 
24 BEGIN_PUBLISH
25 ////////////////////////////////////////////////////////////////////
26 // Function: save_egg_file
27 // Description: A convenience function; converts the indicated scene
28 // graph to an egg file and writes it to disk.
29 ////////////////////////////////////////////////////////////////////
30 EXPCL_PANDAEGG bool
31 save_egg_file(const Filename &filename, PandaNode *node,
32  CoordinateSystem cs = CS_default);
33 
34 ////////////////////////////////////////////////////////////////////
35 // Function: save_egg_data
36 // Description: Another convenience function; works like
37 // save_egg_file() but populates an EggData instead of
38 // writing the results to disk.
39 ////////////////////////////////////////////////////////////////////
40 EXPCL_PANDAEGG bool
41 save_egg_data(EggData *data, PandaNode *node);
42 END_PUBLISH
43 
44 #endif
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72
This is the primary interface into all the egg data, and the root of the egg file structure...
Definition: eggData.h:41
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44