made a ball move
[physics.git] / src / graphics / graphics.cpp
index a719662..ab7f08f 100644 (file)
@@ -27,11 +27,11 @@ void graphicsCleanUp()
 
 }
 
-void glDrawCircle(float radius, const Vector2* vec, const float* color)
+void glDrawCircle(float radius, const Vector2& vec, const float* color)
 {
     glMatrixMode(GL_MODELVIEW);
     glLoadIdentity();
-    glTranslatef(vec->x, vec->y, -1);
+    glTranslatef(vec.x, vec.y, -1);
     glScalef(radius, radius, radius);
 
     if(color != NULL)