*/
#include "graphics.h"
-#include "debug.h"
+
+#include <bear/debug.h>
+#include <bear/mathw.h>
+using namespace bear;
#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;
{
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)
{
const Vector2& vec = points.at(n);
- glVertex3f(vec.x, vec.y, 0);
+ glVertex3f(vec.m_fX, vec.m_fY, 0);
}
glEnd();
}