#include <lua/include/lua.h>
#include <lua/include/lualib.h>
#include <lua/include/lauxlib.h>
#include <oski/lua.h>
Functions | |
oski_matlua_t * | oski_GetStackLuaMat (lua_State *L, int stack_pos) |
Examines the item at the specified position on the stack, and returns the object there if it is a OLUA_MAT object, or returns NULL otherwise. | |
oski_matlua_t * | oski_PushEmptyLuaMat (lua_State *L) |
Returns a pointer to the newly created object, or NULL on error. |
oski_matlua_t* oski_PushEmptyLuaMat | ( | lua_State * | L | ) |
Returns a pointer to the newly created object, or NULL on error.
Executes a OSKI-Lua call to OLUA_MAT.new(), and leaves the result on the stack.
References oski_matlua_t::ind_type, INVALID_ID, oski_matlua_t::mat, oski_matlua_t::mattype_name, OLUA_MATTAB, OLUA_NEWUSERDATA, OSKI_IND_ID, OSKI_VAL_ID, oski_matlua_t::props, oski_matspecific_t::repr, oski_matspecific_t::type_id, and oski_matlua_t::val_type.