i6engine  1.0
DebugDrawer.h
Go to the documentation of this file.
1 /*
2  * i6engine
3  * Copyright (2016) Daniel Bonrath, Michael Baer, All rights reserved.
4  *
5  * This file is part of i6engine; i6engine is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __I6ENGINE_MODULES_DEBUGDRAWER_H__
26 #define __I6ENGINE_MODULES_DEBUGDRAWER_H__
27 
28 #include "i6engine/i6engineBuildSettings.h"
29 
30 #include "LinearMath/btIDebugDraw.h"
31 
32 namespace i6e {
33 namespace modules {
34 
41  class DebugDrawer : public btIDebugDraw {
42  public:
46  DebugDrawer() : btIDebugDraw() {}
47 
52 
56  void drawLine(const btVector3 & from, const btVector3 & to, const btVector3 & col);
57 
62  void drawLine(const btVector3 & from, const btVector3 & to, const btVector3 & col, const btVector3 & /*toColor*/) {
63  drawLine(from, to, col);
64  }
65 
69  void drawContactPoint(const btVector3 & a, const btVector3 & b, btScalar g, int f, const btVector3 & c);
70 
74  void reportErrorWarning(const char * d);
75 
79  void draw3dText(const btVector3 & a, const char * c);
80 
84  void setDebugMode(int a);
85 
89  int getDebugMode() const;
90 
91  private:
95  DebugDrawer(const DebugDrawer &);
96 
100  DebugDrawer & operator=(const DebugDrawer &);
101  };
102 
103 } /* namespace modules */
104 } /* namespace i6e */
105 
106 #endif /* __I6ENGINE_MODULES_DEBUGDRAWER_H__ */
107 
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &col)
draws a line from 'from' to 'to' with color 'col'
void drawContactPoint(const btVector3 &a, const btVector3 &b, btScalar g, int f, const btVector3 &c)
currently not implemented
~DebugDrawer()
destructor
Definition: DebugDrawer.h:51
DebugDrawer()
constructor
Definition: DebugDrawer.h:46
void setDebugMode(int a)
currently not implemented
void reportErrorWarning(const char *d)
currently not implemented
void draw3dText(const btVector3 &a, const char *c)
currently not implemented
void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &col, const btVector3 &)
draws a line from 'from' to 'to' with color 'col' toColor is currently ignored
Definition: DebugDrawer.h:62
int getDebugMode() const
returns the debug mode