naev 0.12.5
nlua_font.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "font.h"
7#include "nlua.h"
8
9#define FONT_METATABLE "font"
10
11/*
12 * Library loading
13 */
14int nlua_loadFont( nlua_env env );
15
16/*
17 * Font operations
18 */
19glFont *lua_tofont( lua_State *L, int ind );
20glFont *luaL_checkfont( lua_State *L, int ind );
21glFont *lua_pushfont( lua_State *L, glFont font );
22int lua_isfont( lua_State *L, int ind );
glFont * lua_pushfont(lua_State *L, glFont font)
Pushes a font on the stack.
Definition nlua_font.c:86
int nlua_loadFont(nlua_env env)
Loads the font library.
Definition nlua_font.c:43
glFont * luaL_checkfont(lua_State *L, int ind)
Gets font at index or raises error if there is no font at index.
Definition nlua_font.c:72
int lua_isfont(lua_State *L, int ind)
Checks to see if ind is a font.
Definition nlua_font.c:101
glFont * lua_tofont(lua_State *L, int ind)
Lua bindings to interact with fonts.
Definition nlua_font.c:61
Represents a font in memory.
Definition font.h:17