-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
funkcni zaklad fyziky + debug jeji debug kresleni
- Loading branch information
1 parent
527e298
commit a5286c4
Showing
8 changed files
with
211 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
*.so | ||
|
||
# VS2010 stuff | ||
Release/* | ||
Debug/* | ||
ipch/* | ||
*.sdf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
|
||
#include "PhysicsDebugDraw.h" | ||
|
||
|
||
PhysicsDebugDraw::PhysicsDebugDraw(void): m_debugMode(1) | ||
{ | ||
|
||
} | ||
|
||
PhysicsDebugDraw::~PhysicsDebugDraw(void) | ||
{ | ||
|
||
} | ||
|
||
void PhysicsDebugDraw::drawLine(const btVector3& from,const btVector3& to,const btVector3& color) | ||
{ | ||
glm::vec3 src(from.x(), from.y(), from.z()); | ||
glm::vec3 dst(to.x(), to.y(), to.z()); | ||
glm::vec3 col(color.x(), color.y(), color.z()); | ||
|
||
LINE l(src, dst, col); | ||
lines.push_back(l); | ||
} | ||
|
||
|
||
/*void PhysicsDebugDraw::DrawCylinder(GLfloat *m, GLfloat radius, GLfloat height) | ||
{ | ||
static GLUquadricObj *quadricObj = 0; | ||
if (quadricObj == 0) | ||
{ | ||
quadricObj = gluNewQuadric(); | ||
gluQuadricDrawStyle(quadricObj, GLU_LINE); | ||
} | ||
if (m) | ||
{ | ||
glPushMatrix(); | ||
glMultMatrixf(m); | ||
glRotatef(-90.0f, 0.0f, 1.0f, 0.0f); | ||
glTranslatef(0.0f, 0.0f, -height/2.f); | ||
} | ||
glColor3f(1.f, 0.f, 1.f); | ||
gluCylinder(quadricObj, radius, radius, height, 10, 1); | ||
if (m) | ||
glPopMatrix(); | ||
}*/ |
Oops, something went wrong.