#include <assert.h>
-
- #include "graphics.h"
- #include "array.h"
+#include "graphics.h"
+#include "array.h"
#include <vector>
public:
+ #ifdef BUILD_GRAPHICS
class TextureManager : public Graphics::TextureManager<LUint>, private Array<Texture*>
{
public:
break;
}
}
-
+ #endif //BUILD_GRAPHICS
void Print(FILE * stream, const Piece::Colour & reveal=Piece::BOTH); //Print board
void PrintPretty(FILE * stream, const Piece::Colour & reveal=Piece::BOTH); //Print board using colour
+ #ifdef BUILD_GRAPHICS
void Draw(const Piece::Colour & reveal=Piece::BOTH, bool showRevealed = true); //Draw board
-
+ #endif //BUILD_GRAPHICS
bool AddPiece(int x, int y, const Piece::Type & newType, const Piece::Colour & newColour); //Add piece to board