X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2Fgraphics%2Fgraphics.cpp;h=693982428398730f0fb2bd06062a3e36d87431bd;hp=d89db8ae9980ef4fda901c3d53dace89dd35294d;hb=9d6dea5f1cfd43cfa136241b352830371acfdc88;hpb=e86c86b38b25bcb463943dc166b60f236aa4af10 diff --git a/src/graphics/graphics.cpp b/src/graphics/graphics.cpp index d89db8a..6939824 100644 --- a/src/graphics/graphics.cpp +++ b/src/graphics/graphics.cpp @@ -57,7 +57,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 +104,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(); }