projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
massive cleaning of file section headers
[physics.git]
/
src
/
graphics
/
graphics.cpp
diff --git
a/src/graphics/graphics.cpp
b/src/graphics/graphics.cpp
index
ab7f08f
..
32811c3
100644
(file)
--- a/
src/graphics/graphics.cpp
+++ b/
src/graphics/graphics.cpp
@@
-1,20
+1,20
@@
#include "graphics.h"
#include "graphics.h"
+#include "../debug.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <SDL/SDL.h>
#include <cmath>
#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 *****
/// ***** Private Method Headers *****
+
void drawCircle(int);
void sdlInit();
void glInit();
void drawCircle(int);
void sdlInit();
void glInit();
-/// *****
Public Method
s *****
+/// *****
Initializers/Cleaner
s *****
void graphicsInit()
{
void graphicsInit()
{
@@
-22,11
+22,13
@@
void graphicsInit()
glInit();
}
glInit();
}
-void graphicsClean
Up
()
+void graphicsClean()
{
}
{
}
+/// ***** Public Methods *****
+
void glDrawCircle(float radius, const Vector2& vec, const float* color)
{
glMatrixMode(GL_MODELVIEW);
void glDrawCircle(float radius, const Vector2& vec, const float* color)
{
glMatrixMode(GL_MODELVIEW);