Project

General

Profile

SO3Engine
OgreNewt::CollisionSerializer Class Reference

#include <OgreNewt_CollisionSerializer.h>

Inheritance diagram for OgreNewt::CollisionSerializer:

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()

OgreNewt::CollisionSerializer::~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: