From 6637f4af57cd60008388bfefda1c37376c9d7042 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Nov 2012 13:29:10 +0300 Subject: Add debug option to show draw calls per frame. Also fix map draw and text in debug window with mobile OpenGL. --- src/mobileopenglgraphics.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mobileopenglgraphics.h') diff --git a/src/mobileopenglgraphics.h b/src/mobileopenglgraphics.h index 4402904b7..046fb1f0e 100644 --- a/src/mobileopenglgraphics.h +++ b/src/mobileopenglgraphics.h @@ -155,6 +155,15 @@ class MobileOpenGLGraphics final : public Graphics void updateTextureFormat(); +#ifdef DEBUG_DRAW_CALLS + virtual unsigned int getDrawCalls() const + { return mLastDrawCalls; } + + static unsigned int mDrawCalls; + + static unsigned int mLastDrawCalls; +#endif + static void bindTexture(GLenum target, GLuint texture); static GLuint mLastImage; -- cgit v1.2.3-60-g2f50