1 #ifndef __DALI_PLUGIN_BULLET_DYNAMICS_DEBUG_H__
2 #define __DALI_PLUGIN_BULLET_DYNAMICS_DEBUG_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
21 #include <dali/integration-api/dynamics/dynamics-debug-vertex.h>
22 // TODO: Change this to use #pragma GCC diagnostic push / pop when the compiler is updated to 4.6.0+
23 #pragma GCC diagnostic ignored "-Wfloat-equal"
24 #include <btBulletDynamicsCommon.h>
25 #pragma GCC diagnostic error "-Wfloat-equal"
34 * Debug draw class, BulletPhysics engine will invoke methods on this object to render debug information.
35 * Debug lines are collated into a container and then rendered as a single array during Core::Render
37 class BulletDebugDraw : public btIDebugDraw
48 virtual ~BulletDebugDraw();
50 virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& color);
51 virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color);
52 virtual void reportErrorWarning(const char* warningString);
53 virtual void draw3dText(const btVector3& location,const char* textString);
54 virtual void setDebugMode(int debugMode);
55 virtual int getDebugMode() const;
58 const Integration::DynamicsDebugVertexContainer& GetVertices() const;
63 Integration::DynamicsDebugVertexContainer mVertices;
65 }; // class BulletDebugDraw
71 #endif /* __DALI_PLUGIN_BULLET_DYNAMICS_DEBUG_H__ */