projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactored Vector2
[physics.git]
/
src
/
graphics
/
graphics.cpp
diff --git
a/src/graphics/graphics.cpp
b/src/graphics/graphics.cpp
index
d89db8a
..
6939824
100644
(file)
--- a/
src/graphics/graphics.cpp
+++ b/
src/graphics/graphics.cpp
@@
-57,7
+57,7
@@
void graphics::drawCircle(float radius, const Vector2& pos, const float* color)
{
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
{
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)
glScalef(radius, radius, radius);
if(color != NULL)
@@
-104,7
+104,7
@@
void glDrawPolygon( const std::vector<Vector2>& points )
{
const Vector2& vec = points.at(n);
{
const Vector2& vec = points.at(n);
- glVertex3f(vec.
x, vec.y
, 0);
+ glVertex3f(vec.
m_fX, vec.m_fY
, 0);
}
glEnd();
}
}
glEnd();
}