projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made a ball move
[physics.git]
/
src
/
graphics
/
graphics.cpp
diff --git
a/src/graphics/graphics.cpp
b/src/graphics/graphics.cpp
index
a719662
..
ab7f08f
100644
(file)
--- 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();
{
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glTranslatef(vec
->x, vec->
y, -1);
+ glTranslatef(vec
.x, vec.
y, -1);
glScalef(radius, radius, radius);
if(color != NULL)
glScalef(radius, radius, radius);
if(color != NULL)