Panagiotis Christopoulos Charitos 13 лет назад
Родитель
Сommit
88e892a030
2 измененных файлов с 7 добавлено и 6 удалено
  1. 6 3
      include/anki/scene/SceneNode.h
  2. 1 3
      run_callgrind.sh

+ 6 - 3
include/anki/scene/SceneNode.h

@@ -4,10 +4,8 @@
 #include "anki/scene/Property.h"
 #include <string>
 
-
 namespace anki {
 
-
 class Scene; // Don't include
 
 class Movable;
@@ -15,7 +13,7 @@ class Renderable;
 class Frustumable;
 class Spatial;
 class Light;
-
+class RigidBody;
 
 /// @addtogroup Scene
 /// @{
@@ -72,6 +70,11 @@ public:
 	{
 		return nullptr;
 	}
+
+	virtual RigidBody* getRigidBody()
+	{
+		return nullptr;
+	}
 	/// @}
 
 	/// This is called by the scene every frame after logic and before

+ 1 - 3
run_callgrind.sh

@@ -1,3 +1 @@
-valgrind --tool=callgrind --callgrind-out-file=callgrind.out.tmp --collect-jumps=yes --branch-sim=yes --cache-sim=yes --simulate-wb=yes --cacheuse=yes --simulate-hwpref=yes ./build/testapp/testapp
-
-# --I1=32768,2,64 --D1=32768,2,64 --LL=1048576,16,64
+valgrind --tool=callgrind --callgrind-out-file=callgrind.out.tmp --collect-jumps=yes --branch-sim=yes --cache-sim=yes --simulate-wb=yes --cacheuse=yes --simulate-hwpref=yes --separate-threads=yes --I1=32768,2,64 --D1=32768,2,64 --LL=1048576,16,64 ./build/testapp/testapp