Panda3D
save_egg_file.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 save_egg_file.h
10  * @author drose
11  * @date 2012-12-19
12  */
13 
14 #ifndef SAVE_EGG_FILE_H
15 #define SAVE_EGG_FILE_H
16 
17 #include "pandabase.h"
18 
19 #include "pandaNode.h"
20 #include "coordinateSystem.h"
21 #include "eggData.h"
22 
23 BEGIN_PUBLISH
24 /**
25  * A convenience function; converts the indicated scene graph to an egg file
26  * and writes it to disk.
27  */
28 EXPCL_PANDA_EGG2PG bool
29 save_egg_file(const Filename &filename, PandaNode *node,
30  CoordinateSystem cs = CS_default);
31 
32 /**
33  * Another convenience function; works like save_egg_file() but populates an
34  * EggData instead of writing the results to disk.
35  */
36 EXPCL_PANDA_EGG2PG bool
37 save_egg_data(EggData *data, PandaNode *node);
38 END_PUBLISH
39 
40 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
Definition: pandaNode.h:64
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BEGIN_PUBLISH EXPCL_PANDA_EGG2PG bool save_egg_file(const Filename &filename, PandaNode *node, CoordinateSystem cs=CS_default)
A convenience function; converts the indicated scene graph to an egg file and writes it to disk.
This is the primary interface into all the egg data, and the root of the egg file structure.
Definition: eggData.h:37
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDA_EGG2PG bool save_egg_data(EggData *data, PandaNode *node)
Another convenience function; works like save_egg_file() but populates an EggData instead of writing ...