14#ifndef __INCLUDE_OGRENEWT_PREREQ__
15#define __INCLUDE_OGRENEWT_PREREQ__
19#include <OgreQuaternion.h>
20#include <OgreMovableObject.h>
21#include <OgreRenderable.h>
23#include <OgreFrameListener.h>
24#include <OgreSceneNode.h>
25#include <OgreSceneManager.h>
26#include <OgreManualObject.h>
27#include <OgreOverlay.h>
28#include <OgreFontManager.h>
31# ifndef OGRENEWT_NO_OGRE_ANY
37#include <boost/function.hpp>
38#include <boost/bind/bind.hpp>
39#ifndef OGRENEWT_NO_COLLISION_SHAREDPTR
40# include <boost/shared_ptr.hpp>
43#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
44# if defined( _OGRENEWT_EXPORTS ) && defined( _OGRENEWT_DYNAMIC )
46# define _OgreNewtExport __declspec( dllexport )
47# elif defined( _OGRENEWT_DYNAMIC )
49# define _OgreNewtExport __declspec( dllimport )
52# define _OgreNewtExport
55# define _OgreNewtExport
63#ifdef OGRENEWT_NO_COLLISION_SHAREDPTR
64#warning "the option OGRENEWT_NO_COLLISION_SHAREDPTR is set"
67#ifdef OGRENEWT_NO_OGRE_ANY
68#warning "the option OGRENEWT_NO_OGRE_ANY is set"
81 class CollisionSerializer;
82 class ConvexCollision;
92 template<
class DerivedClass>
110 m_callback((DerivedClass*)(
this));
134 template<
class c>
void setDestructorCallback( std::function<
void(c*, DerivedClass*)> callback, c *instancedClassPointer )
helper class: OgreNewt-classes can derive from this class to implement a destructor-callback
void setDestructorCallback(DestructorCallbackFunction fun)
set the destructor callback
std::function< void(DerivedClass *)> DestructorCallbackFunction
destructor callback
void setDestructorCallback(std::function< void(c *, DerivedClass *)> callback, c *instancedClassPointer)
void removeDestructorCallback()
remove any destructor callback
virtual ~_DestructorCallback()
destructor
_DestructorCallback()
constructor