From 74a422dfa98decbf0914e0953948b13718d10ea6 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 16 Mar 2013 10:14:07 -0700 Subject: [PATCH] add missing files, and make some functions virtual to allow compilation --- demo/gpudemo/premake4.lua | 3 +++ opencl/gpu_rigidbody/host/btTypedConstraint.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/gpudemo/premake4.lua b/demo/gpudemo/premake4.lua index 38b9ee4ed..0914522ae 100644 --- a/demo/gpudemo/premake4.lua +++ b/demo/gpudemo/premake4.lua @@ -65,6 +65,9 @@ function createProject(vendor) "../../opencl/parallel_primitives/host/btPrefixScanCL.h", "../../opencl/parallel_primitives/host/btRadixSort32CL.cpp", "../../opencl/parallel_primitives/host/btRadixSort32CL.h", + "../../opencl/gpu_rigidbody/host/**.cpp", + "../../opencl/gpu_rigidbody/host/**.h", + } if os.is("Windows") then diff --git a/opencl/gpu_rigidbody/host/btTypedConstraint.h b/opencl/gpu_rigidbody/host/btTypedConstraint.h index 41156a19c..6c0ab2003 100644 --- a/opencl/gpu_rigidbody/host/btTypedConstraint.h +++ b/opencl/gpu_rigidbody/host/btTypedConstraint.h @@ -322,10 +322,10 @@ public: ///return the local value of parameter virtual btScalar getParam(int num, int axis = -1) const = 0; - virtual int calculateSerializeBufferSize() const; + virtual int calculateSerializeBufferSize() const=0; ///fills the dataBuffer and returns the struct name (and 0 on failure) - virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const; + virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const=0; };