Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (26 sloc) 0.673 kb
/*
* 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. */
/**
* @brief Lua Vector2d Wrapper.
*/
typedef struct LuaVector_s {
Vector2d vec; /**< The actual Vector2d. */
} LuaVector;
/*
* Vector library.
*/
int nlua_loadVector( lua_State *L );
/*
* Vector operations.
*/
LuaVector* lua_tovector( lua_State *L, int ind );
LuaVector* luaL_checkvector( lua_State *L, int ind );
LuaVector* lua_pushvector( lua_State *L, LuaVector vec );
int lua_isvector( lua_State *L, int ind );
#endif /* NLUA_VEC2_H */
Jump to Line
Something went wrong with that request. Please try again.