naev
0.11.5
src
nlua_transform.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
#include "mat4.h"
9
10
#define TRANSFORM_METATABLE "transform"
12
#define luaL_opttransform(L,ind,def) nluaL_optarg(L,ind,def,luaL_checktransform)
13
14
/*
15
* Library loading
16
*/
17
int
nlua_loadTransform
( nlua_env env );
18
19
/*
20
* Transform operations
21
*/
22
mat4
*
lua_totransform
( lua_State *L,
int
ind );
23
mat4
*
luaL_checktransform
( lua_State *L,
int
ind );
24
mat4
*
lua_pushtransform
( lua_State *L,
mat4
Transform );
25
int
lua_istransform
( lua_State *L,
int
ind );
lua_pushtransform
mat4 * lua_pushtransform(lua_State *L, mat4 transform)
Pushes a transform on the stack.
Definition
nlua_transform.c:97
lua_istransform
int lua_istransform(lua_State *L, int ind)
Checks to see if ind is a transform.
Definition
nlua_transform.c:112
luaL_checktransform
mat4 * luaL_checktransform(lua_State *L, int ind)
Gets transform at index or raises error if there is no transform at index.
Definition
nlua_transform.c:83
lua_totransform
mat4 * lua_totransform(lua_State *L, int ind)
Lua bindings to interact with transforms.
Definition
nlua_transform.c:72
nlua_loadTransform
int nlua_loadTransform(nlua_env env)
Loads the transform library.
Definition
nlua_transform.c:54
mat4
Definition
mat4.h:10
Generated by
1.12.0