naev
0.11.5
src
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
*/
14
int
nlua_loadTex
( nlua_env );
15
16
/*
17
* Texture operations
18
*/
19
glTexture
*
lua_totex
( lua_State *L,
int
ind );
20
glTexture
*
luaL_checktex
( lua_State *L,
int
ind );
21
glTexture
**
lua_pushtex
( lua_State *L,
glTexture
* tex );
22
int
lua_istex
( lua_State *L,
int
ind );
23
glTexture
*
luaL_validtex
( lua_State *L,
int
ind,
const
char
*searchpath );
lua_totex
glTexture * lua_totex(lua_State *L, int ind)
Lua bindings to interact with OpenGL textures.
Definition
nlua_tex.c:89
lua_istex
int lua_istex(lua_State *L, int ind)
Checks to see if ind is a texture.
Definition
nlua_tex.c:145
lua_pushtex
glTexture ** lua_pushtex(lua_State *L, glTexture *texture)
Pushes a texture on the stack.
Definition
nlua_tex.c:130
luaL_checktex
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
luaL_validtex
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
nlua_loadTex
int nlua_loadTex(nlua_env env)
Loads the texture library.
Definition
nlua_tex.c:62
glTexture
Abstraction for rendering sprite sheets.
Definition
opengl_tex.h:36
Generated by
1.12.0