Backing up the results files before fucking with them
[progcomp2012.git] / judge / manager / graphics.h
index 2a96932..41dd7de 100644 (file)
@@ -1,4 +1,4 @@
-//#define BUILD_GRAPHICS
+#define BUILD_GRAPHICS
 #ifdef BUILD_GRAPHICS
 
 #ifndef GRAPHICS_H
@@ -8,6 +8,8 @@
 #include <SDL/SDL.h>
 #include <SDL/SDL_opengl.h>
 
+#define GRID_SIZE 64.0
+
 typedef SDL_Surface Screen;
 typedef SDL_Rect Rectangle;
 typedef short unsigned int SUint;
@@ -18,6 +20,7 @@ typedef unsigned char Uint8;
 
 
 
+#include <fstream>
 
 
 
@@ -93,7 +96,7 @@ class Graphics
                };
 
                static bool Initialised() {return initialised;}
-
+               static void ScreenShot(const char * fileName);
        protected:
                static void DrawColourData(SDL_Surface * dest, int destX, int destY, std::vector<SUint> * R, std::vector<SUint> * G, std::vector<SUint> * B, std::vector<SUint> * A = NULL);
                static void DrawColourData(SDL_Surface * dest, int destX, int destY, std::vector<std::vector<SUint> > * R, std::vector<std::vector<SUint> > * G, std::vector<std::vector<SUint> > * B, std::vector<std::vector<SUint> > * A = NULL);
@@ -151,6 +154,8 @@ class Font : private Texture
 };
 
 
+
+
 #endif //GRAPHICS_H
 
 #endif //BUILD_GRAPHICS

UCC git Repository :: git.ucc.asn.au