git.ucc.asn.au
/
progcomp2012.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Worked out networking
[progcomp2012.git]
/
judge
/
manager
/
graphics.cpp
diff --git
a/judge/manager/graphics.cpp
b/judge/manager/graphics.cpp
index
5b708df
..
7cc22d0
100644
(file)
--- a/
judge/manager/graphics.cpp
+++ b/
judge/manager/graphics.cpp
@@
-3,6
+3,7
@@
#include <cassert>
#include <iostream>
#include <cassert>
#include <iostream>
+#ifdef BUILD_GRAPHICS
#undef DEBUG
//#define DEBUG
#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)
{
Font::Font(const char * filename, int newWidth, int newHeight) : Texture(filename), width(newWidth), height(newHeight)
{
@@
-442,8
+444,9
@@
Colour Graphics::ConvertColour(Uint8 from)
return result;
}
return result;
}
+void Graphics::Wait(int n)
+{
+ SDL_Delay(n);
+}
-
-
-
-
+#endif //BUILD_GRAPHICS
UCC
git Repository :: git.ucc.asn.au