Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (20 sloc) 539 Bytes
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef NLUA_VEC2_H
# define NLUA_VEC2_H
#include <lua.h>
#include "physics.h"
#define VECTOR_METATABLE "vec2" /**< Vector metatable identifier. */
/*
* Vector library.
*/
int nlua_loadVector( lua_State *L );
/*
* Vector operations.
*/
Vector2d* lua_tovector( lua_State *L, int ind );
Vector2d* luaL_checkvector( lua_State *L, int ind );
Vector2d* lua_pushvector( lua_State *L, Vector2d vec );
int lua_isvector( lua_State *L, int ind );
#endif /* NLUA_VEC2_H */