SO3Engine
include
External
ogrenewt
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
16
#include "
OgreNewt_Prerequisites.h
"
17
#include "
OgreNewt_Collision.h
"
18
19
// OgreNewt namespace. all functions and classes use this namespace.
20
namespace
OgreNewt
21
{
26
class
_OgreNewtExport
CollisionSerializer
:
public
Ogre::Serializer
27
{
28
public
:
29
31
CollisionSerializer
();
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
OgreNewt_Collision.h
OgreNewt_Prerequisites.h
OgreNewt::Collision
represents a shape for collision detection
Definition
OgreNewt_Collision.h:51
OgreNewt::CollisionSerializer
Definition
OgreNewt_CollisionSerializer.h:27
OgreNewt::World
represents a physics world.
Definition
OgreNewt_World.h:142
OgreNewt
main namespace.
Definition
OgreNewt_BasicFrameListener.h:30
Generated by
1.9.8