add a few virtual destructors, remove physics client from server
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
struct CommonCameraInterface
|
struct CommonCameraInterface
|
||||||
{
|
{
|
||||||
|
virtual ~CommonCameraInterface(){}
|
||||||
virtual void getCameraProjectionMatrix(float m[16])const = 0;
|
virtual void getCameraProjectionMatrix(float m[16])const = 0;
|
||||||
virtual void getCameraViewMatrix(float m[16]) const = 0;
|
virtual void getCameraViewMatrix(float m[16]) const = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ enum
|
|||||||
|
|
||||||
struct CommonRenderInterface
|
struct CommonRenderInterface
|
||||||
{
|
{
|
||||||
|
virtual ~CommonRenderInterface() {}
|
||||||
virtual void init()=0;
|
virtual void init()=0;
|
||||||
virtual void updateCamera(int upAxis)=0;
|
virtual void updateCamera(int upAxis)=0;
|
||||||
virtual void removeAllInstances() = 0;
|
virtual void removeAllInstances() = 0;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ subject to the following restrictions:
|
|||||||
|
|
||||||
|
|
||||||
#include "PhysicsServerExample.h"
|
#include "PhysicsServerExample.h"
|
||||||
#include "PhysicsClientExample.h"
|
|
||||||
#include "Bullet3Common/b3CommandLineArgs.h"
|
#include "Bullet3Common/b3CommandLineArgs.h"
|
||||||
|
|
||||||
#include "../CommonInterfaces/CommonExampleInterface.h"
|
#include "../CommonInterfaces/CommonExampleInterface.h"
|
||||||
@@ -73,16 +73,10 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
args.GetCmdLineArgument("shared_memory_key", gSharedMemoryKey);
|
args.GetCmdLineArgument("shared_memory_key", gSharedMemoryKey);
|
||||||
|
|
||||||
if (args.CheckCmdLineFlag("client"))
|
// options.m_option |= PHYSICS_SERVER_ENABLE_COMMAND_LOGGING;
|
||||||
{
|
// options.m_option |= PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG;
|
||||||
example = (SharedMemoryCommon*)PhysicsClientCreateFunc(options);
|
|
||||||
}else
|
|
||||||
{
|
|
||||||
// options.m_option |= PHYSICS_SERVER_ENABLE_COMMAND_LOGGING;
|
|
||||||
// options.m_option |= PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG;
|
|
||||||
|
|
||||||
example = (SharedMemoryCommon*)PhysicsServerCreateFunc(options);
|
example = (SharedMemoryCommon*)PhysicsServerCreateFunc(options);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
example->initPhysics();
|
example->initPhysics();
|
||||||
|
|||||||
Reference in New Issue
Block a user