diff options
author | chai <chaifix@163.com> | 2018-11-13 21:33:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-13 21:33:25 +0800 |
commit | d2058dce75ceb67f27c50e9f27d755a4d30c9003 (patch) | |
tree | 7575e4b15b637511705632c276f244159841e375 /src/lua/modules/graphics/je_lua_ttf.h | |
parent | 75792c15480d3d99b2ba7e79e143e4b569b22611 (diff) |
*修改渲染模块
Diffstat (limited to 'src/lua/modules/graphics/je_lua_ttf.h')
-rw-r--r-- | src/lua/modules/graphics/je_lua_ttf.h | 39 |
1 files changed, 39 insertions, 0 deletions
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<Graphics::Fonts::TTFData>* ttfDataShared; + + }; + + } +} + +#endif
\ No newline at end of file |