*/
#include <GL/gl.h>
+
+#define GLUT
+//#define SDL
+
+#ifdef GLUT
#include <GL/glut.h>
+#include <GL/freeglut.h>
+#endif //GLUT
#include "nbody.h"
#define WIDTH 800
-#define HEIGHT 800
+#define HEIGHT 640
#define POINT_SIZE 1
#define POSITION_X 112
#define POSITION_Y 20
#define WORLD_TOP 10000
#define VIEW_ANGLE 45
#define RHO 100
-#define WORLD_NEAR 0.1
+#define WORLD_NEAR 0.0001
#define WORLD_FAR 1000000
#define BALL_SIZE 0.5
#define REFRESH_RATE 0.001
-#define LINE_SIZE 1000
+
void Graphics_Run(int argc, char ** argv);
void Graphics_Display(void);
void Graphics_Keyboard(unsigned char key, int mouse_x, int mouse_y);
void Graphics_Reshape(int width, int height);
+extern double scale;
+
+#define FLYING_CAMERA
+
+#ifdef FLYING_CAMERA
+typedef struct
+{
+ float p[DIMENSIONS]; // Translation position of the camera
+
+ float x[DIMENSIONS];
+ float y[DIMENSIONS];
+ float z[DIMENSIONS];
+
+} Camera;
+#endif //FLYING_CAMERA
#endif //_GRAPHICS_H