VR-Forces 4.1 Class Documentation
sharedMemoryBulletDebugDrawer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 
15 
16 #include <btBulletCollisionCommon.h>
18 
19 class Coordinate_System;
20 
22 {
23 public:
26 
28  virtual void startNewFrame();
29 
31  virtual void finishFrame();
32 
33  virtual const Coordinate_System* coordinateSystem() const;
34 
35  virtual void setCoordinateSystem(const Coordinate_System* cs);
36 
37  virtual void drawLine(const btVector3& from,const btVector3& to,const btVector3& color);
38 
39  virtual void drawSphere(const btVector3& p, btScalar radius, const btVector3& color);
40 
41  virtual void drawTriangle(const btVector3& v0,const btVector3& v1,const btVector3& v2,const btVector3& /*n0*/,const btVector3& /*n1*/,const btVector3& /*n2*/,const btVector3& color, btScalar alpha)
42  {
43  drawTriangle(v0,v1,v2,color,alpha);
44  }
45 
46  virtual void drawTriangle(const btVector3& v0,const btVector3& v1,const btVector3& v2,const btVector3& color, btScalar /*alpha*/);
47 
48  virtual void drawContactPoint(const btVector3& PointOnB,const btVector3& normalOnB,btScalar distance,int lifeTime,const btVector3& color);
49 
50  virtual void reportErrorWarning(const char* warningString);
51 
52  virtual void draw3dText(const btVector3& location,const char* textString);
53 
54  virtual void setDebugMode(int debugMode);
55 
56  virtual int getDebugMode() const;
57 
58  virtual bool isEnabled();
59 
60  virtual void setEnabled(bool enable);
61 
62 protected:
65  bool isDrawing;
66 };
67 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)