Parallel Programming - Tidied things up
[matches/honours.git] / course / semester2 / pprog / assignment1 / single-thread / graphics.h
1 #ifndef _GRAPHICS_H
2 #define _GRAPHICS_H
3
4 /**
5  * @file graphics.h
6  * @author Sam Moore (20503628) 2012 - adapted from template program provided by UWA
7  * @purpose N-Body simulator - declarations of all graphics related functions
8  * NOTE: I prefer to keep graphics seperate from the simulation as much as possible, hence seperate files
9  */
10
11 #include <GL/gl.h>
12 #include <GL/glut.h>
13
14 #include "nbody.h"
15
16 #define WIDTH 800
17 #define HEIGHT 800
18 #define POINT_SIZE 1
19 #define POSITION_X 112
20 #define POSITION_Y 20
21 #define WORLD_LEFT -10000
22 #define WORLD_RIGHT 10000
23 #define WORLD_BOTTOM -10000
24 #define WORLD_TOP 10000
25 #define VIEW_ANGLE 45
26 #define RHO 100
27 #define WORLD_NEAR 0.1
28 #define WORLD_FAR 1000000
29 #define BALL_SIZE 0.5
30 #define REFRESH_RATE 0.001
31 #define LINE_SIZE 1000
32
33 void Graphics_Run(int argc, char ** argv);
34 void Graphics_Display(void);
35 void Graphics_Keyboard(unsigned char key, int mouse_x, int mouse_y);
36 void Graphics_Reshape(int width, int height);
37
38
39 #endif //_GRAPHICS_H
40
41 //EOF

UCC git Repository :: git.ucc.asn.au