aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics/Font.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-16 14:21:56 +0800
committerchai <chaifix@163.com>2018-08-16 14:21:56 +0800
commit8585c92b7d0744a1f1a39c872cf5096621161b6c (patch)
tree6aa02138f39f7b11ab17c7399064353092b8df0c /src/lua/graphics/Font.h
parentbe9b27dbf550093b555ab3087c11b38c89ab9fd0 (diff)
*update
Diffstat (limited to 'src/lua/graphics/Font.h')
-rw-r--r--src/lua/graphics/Font.h52
1 files changed, 0 insertions, 52 deletions
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