#include <cassert>
#include <iostream>
+#ifdef BUILD_GRAPHICS
#undef DEBUG
//#define DEBUG
}
+
Font::Font(const char * filename, int newWidth, int newHeight) : Texture(filename), width(newWidth), height(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);
return result;
}
+void Graphics::Wait(int n)
+{
+ SDL_Delay(n);
+}
-
-
-
-
+#endif //BUILD_GRAPHICS