X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=course%2Fsemester2%2Fpprog%2Fassignment1%2Fsingle-thread%2Fgraphics.h;h=97ccf47219a8e435748dd37a9c96871303de4158;hb=3aa33507aadf1d2b1649dc8d489c1811842d4c7a;hp=c2b99f38ba6c2f992617e3c2e731d0339ffdc38d;hpb=df06a43b2727b939ee572a1ddaa39e707aff030a;p=matches%2Fhonours.git diff --git a/course/semester2/pprog/assignment1/single-thread/graphics.h b/course/semester2/pprog/assignment1/single-thread/graphics.h index c2b99f38..97ccf472 100644 --- a/course/semester2/pprog/assignment1/single-thread/graphics.h +++ b/course/semester2/pprog/assignment1/single-thread/graphics.h @@ -14,7 +14,7 @@ #include "nbody.h" #define WIDTH 800 -#define HEIGHT 800 +#define HEIGHT 640 #define POINT_SIZE 1 #define POSITION_X 112 #define POSITION_Y 20 @@ -24,7 +24,7 @@ #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 @@ -36,6 +36,20 @@ void Graphics_Keyboard(unsigned char key, int mouse_x, int mouse_y); void Graphics_Reshape(int width, int height); +#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 //EOF