refactored Vector2
[physics.git] / src / graphics / graphics.cpp
index d89db8a..6939824 100644 (file)
@@ -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<Vector2>& points )
         {
             const Vector2& vec = points.at(n);
 
-            glVertex3f(vec.x, vec.y, 0);
+            glVertex3f(vec.m_fX, vec.m_fY, 0);
         }
     glEnd();
 }