aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_gl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/je_gl.h')
-rw-r--r--src/libjin/graphics/je_gl.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libjin/graphics/je_gl.h b/src/libjin/graphics/je_gl.h
index 37dc890..21aa900 100644
--- a/src/libjin/graphics/je_gl.h
+++ b/src/libjin/graphics/je_gl.h
@@ -38,6 +38,19 @@ namespace JinEngine
PREMULTIPLIEDALPHA,
};
+ struct Stats
+ {
+ int drawCalls;
+ //int drawCallsBatched;
+ int canvasSwitches;
+ int shaderSwitches;
+ int fontSwitches;
+ int textures;
+ int canvases;
+ int fonts;
+ //int64 textureMemory;
+ };
+
OpenGL();
~OpenGL();
@@ -185,6 +198,16 @@ namespace JinEngine
///
BlendMode getBlendMode();
+ ///
+ ///
+ ///
+ void resetStats();
+
+ ///
+ ///
+ ///
+ Stats& getStats();
+
private:
static const Canvas* const DEFAULT_CANVAS;
@@ -229,6 +252,11 @@ namespace JinEngine
///
Fonts::Font* mFont;
+ ///
+ ///
+ ///
+ Stats mStats;
+
};
// Singleton.