From 6e64f600b662bbf5dd6cb63661504b67b60cddcd Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 24 Dec 2018 08:15:13 +0800 Subject: *stats --- src/libjin/graphics/fonts/je_font.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libjin/graphics/fonts') diff --git a/src/libjin/graphics/fonts/je_font.h b/src/libjin/graphics/fonts/je_font.h index 3af0b11..9c231de 100644 --- a/src/libjin/graphics/fonts/je_font.h +++ b/src/libjin/graphics/fonts/je_font.h @@ -34,12 +34,16 @@ namespace JinEngine Font(unsigned fontsize) : mFontSize(fontsize) { + ++gl.getStats().fonts; } /// /// Font destructor. /// - virtual ~Font() {}; + virtual ~Font() + { + --gl.getStats().fonts; + }; /// /// Create page with given text. -- cgit v1.1-26-g67d0