summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-20 13:29:10 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-20 22:21:59 +0300
commit6637f4af57cd60008388bfefda1c37376c9d7042 (patch)
treeeb31d1c197c86583e5f2a525ca020de625f32919 /src/graphics.h
parentcadc0f8b6d0bd71f319c3e6576af05dcd0a7533f (diff)
downloadmv-6637f4af57cd60008388bfefda1c37376c9d7042.tar.gz
mv-6637f4af57cd60008388bfefda1c37376c9d7042.tar.bz2
mv-6637f4af57cd60008388bfefda1c37376c9d7042.tar.xz
mv-6637f4af57cd60008388bfefda1c37376c9d7042.zip
Add debug option to show draw calls per frame.
Also fix map draw and text in debug window with mobile OpenGL.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h
index d538ef7af..6ef38350a 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -321,6 +321,10 @@ class Graphics : public gcn::SDLGraphics
virtual void initArrays()
{ }
+#ifdef DEBUG_DRAW_CALLS
+ virtual unsigned int getDrawCalls() const
+ { return 0; }
+#endif
int mWidth;
int mHeight;