From 8585c92b7d0744a1f1a39c872cf5096621161b6c Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 16 Aug 2018 14:21:56 +0800 Subject: *update --- src/lua/graphics/Font.h | 52 ------------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 src/lua/graphics/Font.h (limited to 'src/lua/graphics/Font.h') diff --git a/src/lua/graphics/Font.h b/src/lua/graphics/Font.h deleted file mode 100644 index 3343690..0000000 --- a/src/lua/graphics/Font.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef __JIN_LUA_GRAPHICS_FONT_H -#define __JIN_LUA_GRAPHICS_FONT_H -#include "libjin/jin.h" -#include "../luaopen_types.h" - -namespace jin -{ -namespace lua -{ -namespace graphics -{ - - class Font : public Object - { - public: - Font() - { - font = new jin::graphics::Font(); - } - - void box(const char* str, int fheight, int spacing, int lheight, int* w, int * h) - { - font->box(str, fheight, spacing, lheight, w, h); - } - void loadb(const unsigned char* data) - { - font->loadb(data); - } - void render( - const char* text, // rendered text - float x, float y, // render position - int fheight, // font height - int spacing, // font spacing - int lheight) // line height - { - font->render(text, x, y, fheight, spacing, lheight); - } - private: - ~Font() - { - delete font; - } - - jin::graphics::Font* font; - - }; - -} // graphics -} // lua -} // jin - -#endif // __JIN_LUA_GRAPHICS_FONT_H \ No newline at end of file -- cgit v1.1-26-g67d0