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) |
Detailed Description
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.
Constructor & Destructor Documentation
◆ CollisionSerializer()
OgreNewt::CollisionSerializer::CollisionSerializer | ( | ) |
constructor
Definition at line 8 of file OgreNewt_CollisionSerializer.cpp.
◆ ~CollisionSerializer()
|
virtual |
destructor
Definition at line 13 of file OgreNewt_CollisionSerializer.cpp.
Member Function Documentation
◆ exportCollision()
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.
◆ importCollision()
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.
The documentation for this class was generated from the following files:
- include/External/ogrenewt/OgreNewt_CollisionSerializer.h
- src/External/ogrenewt/OgreNewt_CollisionSerializer.cpp
Generated by 1.9.8