Project

General

Profile

SO3Engine
OgreNewt_CollisionSerializer.h
Go to the documentation of this file.
1/*
2 OgreNewt Library
3
4 Ogre implementation of Newton Game Dynamics SDK
5
6 OgreNewt basically has no license, you may use any or all of the library however you desire... I hope it can help you in any way.
7
8 by Walaber
9 some changes by melven
10
11*/
12#ifndef _INCLUDE_OGRENEWT_COLLISIONSERIALIZER
13#define _INCLUDE_OGRENEWT_COLLISIONSERIALIZER
14
15
17#include "OgreNewt_Collision.h"
18
19// OgreNewt namespace. all functions and classes use this namespace.
20namespace OgreNewt
21{
26 class _OgreNewtExport CollisionSerializer : public Ogre::Serializer
27 {
28 public:
29
32
34 virtual ~CollisionSerializer();
35
39 void exportCollision(const OgreNewt::CollisionPtr& collision, const Ogre::String& filename);
40
45// OgreNewt::CollisionPtr importCollision(Ogre::DataStreamPtr& stream, OgreNewt::World* world);
46 OgreNewt::CollisionPtr importCollision(Ogre::DataStream& stream, OgreNewt::World* world);
47
48 private:
53 static void _CDECL _newtonSerializeCallback(void* serializeHandle, const void* buffer, int size);
54
59 static void _CDECL _newtonDeserializeCallback(void* deserializeHandle, void* buffer, int size);
60 };
61
62
63} // end NAMESPACE OgreNewt
64
65#endif
66// _INCLUDE_OGRENEWT_COLLISIONSERIALIZER
67
represents a shape for collision detection
represents a physics world.