X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=course%2Fsemester2%2Fpprog%2Fassignment0%2Fgraphics.h;fp=course%2Fsemester2%2Fpprog%2Fassignment0%2Fgraphics.h;h=cbd53d7048a9240a2c0410f7c83cc126bb8b6057;hb=c37245b967333688ad4c2bd842e7ab5ff4d0b8ec;hp=f977bd9ae4c60e0713f1a9be6967795659e9baf8;hpb=d4f132d40be6b93d54edca1e9af4051ec6c2d0b8;p=matches%2Fhonours.git diff --git a/course/semester2/pprog/assignment0/graphics.h b/course/semester2/pprog/assignment0/graphics.h index f977bd9a..cbd53d70 100644 --- a/course/semester2/pprog/assignment0/graphics.h +++ b/course/semester2/pprog/assignment0/graphics.h @@ -17,17 +17,17 @@ #endif //DIMENSIONS -void Graphics_Init(const char * caption, int w, int h); //Initialise graphics -void Graphics_Destroy(); //Destroy graphics -void Graphics_Update(); //Update view -void Graphics_Clear(float r, float g, float b); //Clear screen -void Graphics_Pixel(int x[DIMENSIONS], float r, float g, float b); //Draw single pixel -void Graphics_Line(int x1[DIMENSIONS], int x2[DIMENSIONS], float r, float g, float b); //Draw straight line -void Graphics_Circle(int x[2], float radius, float r, float g, float b); //Draw circle +extern void Graphics_Init(const char * caption, int w, int h); //Initialise graphics +extern void Graphics_Destroy(); //Destroy graphics +extern void Graphics_Update(); //Update view +extern void Graphics_Clear(float r, float g, float b); //Clear screen +extern void Graphics_Pixel(int x[DIMENSIONS], float r, float g, float b); //Draw single pixel +extern void Graphics_Line(int x1[DIMENSIONS], int x2[DIMENSIONS], float r, float g, float b); //Draw straight line +extern void Graphics_Circle(int x[2], float radius, float r, float g, float b); //Draw circle +extern void Process_Events(); //Handle any events from the SDL system - -void Graphics_DrawPixel(int x[DIMENSIONS], float r, float g, float b); +extern void Graphics_DrawPixel(int x[DIMENSIONS], float r, float g, float b); #endif //_GRAPHICS_H