Panda3D
|
This class converts a Panda scene graph into a .X file and writes it out. More...
#include "xFileMaker.h"
Public Member Functions | |
bool | add_tree (EggData *egg_data) |
Adds the egg tree rooted at the indicated node to the X structure. More... | |
bool | write (const Filename &filename) |
Writes the .x file data to the indicated filename; returns true on success, false otherwise. More... | |
This class converts a Panda scene graph into a .X file and writes it out.
Definition at line 39 of file xFileMaker.h.
bool XFileMaker::add_tree | ( | EggData * | egg_data | ) |
Adds the egg tree rooted at the indicated node to the X structure.
This may be somewhat destructive of the egg tree. Returns true on success, false on failure.
Definition at line 74 of file xFileMaker.cxx.
References XFileNode::add_Frame(), XFileNode::add_FrameTransformMatrix(), XFileMesh::add_polygon(), EggTransform::get_transform3d(), EggTransform::has_transform(), TypedObject::is_of_type(), EggBinMaker::make_bins(), XFileMesh::make_x_mesh(), and EggGroupNode::remove_invalid_primitives().
Referenced by write().
bool XFileMaker::write | ( | const Filename & | filename | ) |
Writes the .x file data to the indicated filename; returns true on success, false otherwise.
Definition at line 61 of file xFileMaker.cxx.
References add_tree().