First commit of LuaGame with an OpenGL backend.
[luagame.git] / funcs_font.h
blob65052aaef119f876fefac8a022f6934bccc52bc6
1 /*
2 Copyright (c)2006-2007 - Brett Lajzer
4 See LICENSE for license information.
5 */
6 #ifndef _FUNCS_FONT_H_
7 #define _FUNCS_FONT_H_
9 #include <map>
10 #include <string>
11 #include <lua.hpp>
12 #include <SDL/SDL.h>
13 #include <SDL/SDL_ttf.h>
15 //loads a font and returns a pointer to it
16 int l_load_font(lua_State *L);
18 //unloads a font
19 int l_close_font(lua_State *L);
21 //gets dimensions of a string as rendered with a font
22 int l_font_string_metrics(lua_State *L);
24 //render a string in a font
25 int l_render_string(lua_State *L);
27 #endif