X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=course%2Fsemester2%2Fpprog%2Fassignment1%2Fmthread%2Fgraphics.h;h=aebee138b9a8f60cf2a97e9f1fbe7daaf1e73c25;hb=c2c6a38870351a5702913ce8a97c25c51662a59c;hp=2fe01084ed24090cc35483688ceb0c763bf456d4;hpb=0f1c535d8b786d3cf5b28231135fe1172571425f;p=matches%2Fhonours.git diff --git a/course/semester2/pprog/assignment1/mthread/graphics.h b/course/semester2/pprog/assignment1/mthread/graphics.h deleted file mode 100644 index 2fe01084..00000000 --- a/course/semester2/pprog/assignment1/mthread/graphics.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef _GRAPHICS_H -#define _GRAPHICS_H - -/** - * @file graphics.h - * @author Sam Moore (20503628) 2012 - adapted from template program provided by UWA - * @purpose N-Body simulator - declarations of all graphics related functions - * NOTE: I prefer to keep graphics entirely seperate from the simulation as much as possible, hence seperate files - */ - -#include -#include - -#include "nbody.h" - -#define WIDTH 800 -#define HEIGHT 800 -#define POINT_SIZE 1 -#define POSITION_X 112 -#define POSITION_Y 20 -#define WORLD_LEFT -10000 -#define WORLD_RIGHT 10000 -#define WORLD_BOTTOM -10000 -#define WORLD_TOP 10000 -#define VIEW_ANGLE 45 -#define RHO 100 -#define WORLD_NEAR 0.1 -#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); - - -#endif //_GRAPHICS_H - -//EOF diff --git a/course/semester2/pprog/assignment1/mthread/graphics.h b/course/semester2/pprog/assignment1/mthread/graphics.h new file mode 120000 index 00000000..aebee138 --- /dev/null +++ b/course/semester2/pprog/assignment1/mthread/graphics.h @@ -0,0 +1 @@ +../single-thread/graphics.h \ No newline at end of file