naev 0.11.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"
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:89
int nlua_loadFont(nlua_env env)
Loads the font library.
Definition nlua_font.c:46
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:75
int lua_isfont(lua_State *L, int ind)
Checks to see if ind is a font.
Definition nlua_font.c:104
glFont * lua_tofont(lua_State *L, int ind)
Lua bindings to interact with fonts.
Definition nlua_font.c:64
Represents a font in memory.
Definition font.h:16