X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fgraphics%2Fgraphics.cpp;h=afc4441b31dee027ed957b189d1a6a485b403382;hb=389bf8fdd7e1b8f4fe21e5a9fdb477d40d03d829;hp=d89db8ae9980ef4fda901c3d53dace89dd35294d;hpb=4a76d2e2cf7874e54a4e6688ebf1fa8ca59ce8c1;p=physics.git diff --git a/src/graphics/graphics.cpp b/src/graphics/graphics.cpp index d89db8a..afc4441 100644 --- a/src/graphics/graphics.cpp +++ b/src/graphics/graphics.cpp @@ -16,15 +16,16 @@ */ #include "graphics.h" -#include "debug.h" + +#include +#include +using namespace bear; #include #include #include #include -#include "mathw.h" - #include using std::cerr; using std::cout; @@ -57,7 +58,7 @@ void graphics::drawCircle(float radius, const Vector2& pos, const float* color) { glMatrixMode(GL_MODELVIEW); glLoadIdentity(); - glTranslatef(pos.x, pos.y, -1); + glTranslatef(pos.m_fX, pos.m_fY, -1); glScalef(radius, radius, radius); if(color != NULL) @@ -104,7 +105,7 @@ void glDrawPolygon( const std::vector& points ) { const Vector2& vec = points.at(n); - glVertex3f(vec.x, vec.y, 0); + glVertex3f(vec.m_fX, vec.m_fY, 0); } glEnd(); }