naev 0.12.5
nlua_tex.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "nlua.h"
7#include "opengl.h"
8
9#define TEX_METATABLE "tex"
10
11/*
12 * Library loading
13 */
14int nlua_loadTex( nlua_env );
15
16/*
17 * Texture operations
18 */
19glTexture *lua_totex( lua_State *L, int ind );
20glTexture *luaL_checktex( lua_State *L, int ind );
21glTexture **lua_pushtex( lua_State *L, glTexture *tex );
22int lua_istex( lua_State *L, int ind );
23glTexture *luaL_validtex( lua_State *L, int ind, const char *searchpath );
glTexture * lua_totex(lua_State *L, int ind)
Lua bindings to interact with OpenGL textures.
Definition nlua_tex.c:86
int lua_istex(lua_State *L, int ind)
Checks to see if ind is a texture.
Definition nlua_tex.c:144
glTexture ** lua_pushtex(lua_State *L, glTexture *texture)
Pushes a texture on the stack.
Definition nlua_tex.c:129
glTexture * luaL_checktex(lua_State *L, int ind)
Gets texture at index or raises error if there is no texture at index.
Definition nlua_tex.c:97
glTexture * luaL_validtex(lua_State *L, int ind, const char *searchpath)
Gets texture directly or from a filename (string) at index or raises error if there is no texture at ...
Definition nlua_tex.c:113
int nlua_loadTex(nlua_env env)
Loads the texture library.
Definition nlua_tex.c:59
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:43