X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fgraphics%2Fgraphics.cpp;h=ab7f08fbe6f520a37d4f77aa29dd791b6703bf49;hb=89ca62b2694538f2ca5845b40aed7c2dec5143fe;hp=a7196620ec7453ecc04c3e4aa125b3aaec77d506;hpb=379cc454ab369431b3bdd2fe97cb2e6a1d68c26d;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)