SO3Engine
|
#include <OgreNewt_CollisionSerializer.h>
Public Member Functions | |
CollisionSerializer () | |
constructor | |
virtual | ~CollisionSerializer () |
destructor | |
void | exportCollision (const OgreNewt::CollisionPtr &collision, const Ogre::String &filename) |
OgreNewt::CollisionPtr | importCollision (Ogre::DataStream &stream, OgreNewt::World *world) |
This class can be used to (de)serialize a Collision. Pre-building a Collision and serializing from a tool, then deserializing it at runtime may be more efficient than building the Collision on the fly, especially for complex objects.
Definition at line 26 of file OgreNewt_CollisionSerializer.h.
OgreNewt::CollisionSerializer::CollisionSerializer | ( | ) |
constructor
Definition at line 8 of file OgreNewt_CollisionSerializer.cpp.
|
virtual |
destructor
Definition at line 13 of file OgreNewt_CollisionSerializer.cpp.
void OgreNewt::CollisionSerializer::exportCollision | ( | const OgreNewt::CollisionPtr & | collision, |
const Ogre::String & | filename | ||
) |
Serialize the Collision to a file with the given name.
Definition at line 18 of file OgreNewt_CollisionSerializer.cpp.
CollisionPtr OgreNewt::CollisionSerializer::importCollision | ( | Ogre::DataStream & | stream, |
OgreNewt::World * | world | ||
) |
Deserialize the Collision from a DataStream. this will create a NEW Collision object
Definition at line 50 of file OgreNewt_CollisionSerializer.cpp.