diff options
Diffstat (limited to 'src/lua/graphics/Font.h')
-rw-r--r-- | src/lua/graphics/Font.h | 52 |
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 |