From d2058dce75ceb67f27c50e9f27d755a4d30c9003 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 13 Nov 2018 21:33:25 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=B8=B2=E6=9F=93=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_ttf.h | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/lua/modules/graphics/je_lua_ttf.h (limited to 'src/lua/modules/graphics/je_lua_ttf.h') diff --git a/src/lua/modules/graphics/je_lua_ttf.h b/src/lua/modules/graphics/je_lua_ttf.h new file mode 100644 index 0000000..7673d67 --- /dev/null +++ b/src/lua/modules/graphics/je_lua_ttf.h @@ -0,0 +1,39 @@ +#ifndef __JE_LUA_TTF_H__ +#define __JE_LUA_TTF_H__ + +#include "../../common/je_lua_shared.hpp" + +#include "libjin/jin.h" + +namespace JinEngine +{ + namespace Lua + { + + class TTFData + : public Graphics::Fonts::TTFData + { + public: + TTF * createTTF(unsigned fontSize); + + private: + using Parent = Graphics::Fonts::TTFData; + + }; + + class TTF + : public Graphics::Fonts::TTF + { + public: + + private: + using Parent = Graphics::Fonts::TTF; + + Shared* ttfDataShared; + + }; + + } +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0