changed src so the libpg headers are now used
[physics.git] / src / graphics / graphics.cpp
index d89db8a..55e2337 100644 (file)
  */
 
 #include "graphics.h"
-#include "debug.h"
+
+#include <pg/debug.h>
+#include <pg/mathw.h>
 
 #include <GL/gl.h>
 #include <GL/glu.h>
 #include <SDL/SDL.h>
 #include <cmath>
 
-#include "mathw.h"
-
 #include <iostream>
 using std::cerr;
 using std::cout;
@@ -57,7 +57,7 @@ void graphics::drawCircle(float radius, const Vector2& pos, const float* color)
 {
     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)
@@ -104,7 +104,7 @@ void glDrawPolygon( const std::vector<Vector2>& points )
         {
             const Vector2& vec = points.at(n);
 
-            glVertex3f(vec.x, vec.y, 0);
+            glVertex3f(vec.m_fX, vec.m_fY, 0);
         }
     glEnd();
 }