Converts the scene graph beginning at the indicated node into an EggData structure, for writing to an egg file. More...
#include "eggSaver.h"
Public Member Functions | |
EggSaver (EggData *data=nullptr) | |
void | add_node (PandaNode *node) |
Adds the scene graph rooted at the indicated node to the accumulated egg data within this object. More... | |
void | add_subgraph (PandaNode *root) |
Adds the scene graph rooted at the indicated node (but without the node itself) to the accumulated egg data within this object. More... | |
EggData * | get_egg_data () const |
Returns the EggData populated within this class. More... | |
Converts the scene graph beginning at the indicated node into an EggData structure, for writing to an egg file.
The conversion is not necessarily complete (some Panda or egg constructs are not fully supported by this class).
Definition at line 53 of file eggSaver.h.
void EggSaver::add_node | ( | PandaNode * | node | ) |
Adds the scene graph rooted at the indicated node to the accumulated egg data within this object.
Call get_egg_data() to retrieve the result.
Definition at line 97 of file eggSaver.cxx.
void EggSaver::add_subgraph | ( | PandaNode * | root | ) |
Adds the scene graph rooted at the indicated node (but without the node itself) to the accumulated egg data within this object.
Call get_egg_data() to retrieve the result.
Definition at line 117 of file eggSaver.cxx.
|
inline |
Returns the EggData populated within this class.
Definition at line 18 of file eggSaver.I.