X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fgraphics%2Fgraphics.cpp;h=ab7f08fbe6f520a37d4f77aa29dd791b6703bf49;hb=f206d19d6b5baa4cb25ba77726f1fd4fcd7492e3;hp=a7196620ec7453ecc04c3e4aa125b3aaec77d506;hpb=44b079f8ee4a8f4a751a3a4e12b2a15a831786a4;p=physics.git diff --git a/src/graphics/graphics.cpp b/src/graphics/graphics.cpp index a719662..ab7f08f 100644 --- a/src/graphics/graphics.cpp +++ b/src/graphics/graphics.cpp @@ -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)