naev 0.11.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"
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:89
int lua_istex(lua_State *L, int ind)
Checks to see if ind is a texture.
Definition nlua_tex.c:145
glTexture ** lua_pushtex(lua_State *L, glTexture *texture)
Pushes a texture on the stack.
Definition nlua_tex.c:130
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:100
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:115
int nlua_loadTex(nlua_env env)
Loads the texture library.
Definition nlua_tex.c:62
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:36