X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=judge%2Fmanager%2Fgraphics.cpp;h=2aed851ecd44c15d5f0a8ad46ddcb3d717a1bebc;hb=6066930db862d08091a637a75137de34bbcddef5;hp=5b708df75ab0b5edf833db1b455e6388737e8d33;hpb=1a03b2543b67f0551e62babec4cd119f1e0e4640;p=progcomp2012.git diff --git a/judge/manager/graphics.cpp b/judge/manager/graphics.cpp index 5b708df..2aed851 100644 --- a/judge/manager/graphics.cpp +++ b/judge/manager/graphics.cpp @@ -3,6 +3,7 @@ #include #include +#ifdef BUILD_GRAPHICS #undef DEBUG //#define DEBUG @@ -127,6 +128,7 @@ void Texture::Draw(int x, int y, double angle , double scale ) } + Font::Font(const char * filename, int newWidth, int newHeight) : Texture(filename), width(newWidth), height(newHeight) { @@ -213,7 +215,7 @@ void Graphics::Initialise(const char * caption, int newWidth, int newHeight) //COMES AFTER SETVIDEO MODE glEnable(GL_TEXTURE_2D); - glClearColor(1,1,1,0); //Set clear colour (white) here + glClearColor(0,0,0,0); //Set clear colour (white) here glViewport(0,0,screenWidth,screenHeight); //DOES matter glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_PROJECTION); @@ -442,8 +444,9 @@ Colour Graphics::ConvertColour(Uint8 from) return result; } +void Graphics::Wait(int n) +{ + SDL_Delay(n); +} - - - - +#endif //BUILD_GRAPHICS