massive cleaning of file section headers
[physics.git] / src / graphics / graphics.cpp
index a719662..32811c3 100644 (file)
@@ -1,20 +1,20 @@
 #include "graphics.h"
+#include "../debug.h"
 
 #include <GL/gl.h>
 #include <GL/glu.h>
 #include <SDL/SDL.h>
 #include <cmath>
 
-#include "../debug.h"
-
-static const float PI = 3.1415926535897;
+#include "../mathw.h"
 
 /// ***** Private Method Headers *****
+
 void drawCircle(int);
 void sdlInit();
 void glInit();
 
-/// ***** Public Methods *****
+/// ***** Initializers/Cleaners *****
 
 void graphicsInit()
 {
@@ -22,16 +22,18 @@ void graphicsInit()
     glInit();
 }
 
-void graphicsCleanUp()
+void graphicsClean()
 {
 
 }
 
-void glDrawCircle(float radius, const Vector2* vec, const float* color)
+/// ***** Public Methods *****
+
+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)