Fix compilation error
This commit is contained in:
parent
92aa06ac35
commit
fb0d3b52e9
|
@ -95,6 +95,12 @@ class TestDynamicAABBTree : public Test {
|
||||||
|
|
||||||
DynamicTreeRaycastCallback mRaycastCallback;
|
DynamicTreeRaycastCallback mRaycastCallback;
|
||||||
|
|
||||||
|
PhysicsCommon mPhysicsCommon;
|
||||||
|
|
||||||
|
#ifdef IS_PROFILING_ACTIVE
|
||||||
|
Profiler* mProfiler;
|
||||||
|
#endif
|
||||||
|
|
||||||
public :
|
public :
|
||||||
|
|
||||||
// ---------- Methods ---------- //
|
// ---------- Methods ---------- //
|
||||||
|
@ -102,7 +108,9 @@ class TestDynamicAABBTree : public Test {
|
||||||
/// Constructor
|
/// Constructor
|
||||||
TestDynamicAABBTree(const std::string& name): Test(name) {
|
TestDynamicAABBTree(const std::string& name): Test(name) {
|
||||||
|
|
||||||
|
#ifdef IS_PROFILING_ACTIVE
|
||||||
|
mProfiler = mPhysicsCommon.createProfiler();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isOverlapping(int nodeId, const List<int>& overlappingNodes) const {
|
bool isOverlapping(int nodeId, const List<int>& overlappingNodes) const {
|
||||||
|
@ -124,6 +132,9 @@ class TestDynamicAABBTree : public Test {
|
||||||
|
|
||||||
// Dynamic AABB Tree
|
// Dynamic AABB Tree
|
||||||
DynamicAABBTree tree(mAllocator);
|
DynamicAABBTree tree(mAllocator);
|
||||||
|
#ifdef IS_PROFILING_ACTIVE
|
||||||
|
tree.setProfiler(mProfiler);
|
||||||
|
#endif
|
||||||
|
|
||||||
int object1Data = 56;
|
int object1Data = 56;
|
||||||
int object2Data = 23;
|
int object2Data = 23;
|
||||||
|
@ -170,6 +181,9 @@ class TestDynamicAABBTree : public Test {
|
||||||
|
|
||||||
// Dynamic AABB Tree
|
// Dynamic AABB Tree
|
||||||
DynamicAABBTree tree(mAllocator);
|
DynamicAABBTree tree(mAllocator);
|
||||||
|
#ifdef IS_PROFILING_ACTIVE
|
||||||
|
tree.setProfiler(mProfiler);
|
||||||
|
#endif
|
||||||
|
|
||||||
int object1Data = 56;
|
int object1Data = 56;
|
||||||
int object2Data = 23;
|
int object2Data = 23;
|
||||||
|
@ -362,6 +376,9 @@ class TestDynamicAABBTree : public Test {
|
||||||
|
|
||||||
// Dynamic AABB Tree
|
// Dynamic AABB Tree
|
||||||
DynamicAABBTree tree(mAllocator);
|
DynamicAABBTree tree(mAllocator);
|
||||||
|
#ifdef IS_PROFILING_ACTIVE
|
||||||
|
tree.setProfiler(mProfiler);
|
||||||
|
#endif
|
||||||
|
|
||||||
int object1Data = 56;
|
int object1Data = 56;
|
||||||
int object2Data = 23;
|
int object2Data = 23;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user