|
Geogram Version 1.9.9
A programming library of geometric algorithms
|
Functions to exchange vec2,vec3,vec4 and mat4 objects between Lua and Geogram. More...
#include <geogram/basic/common.h>#include <geogram/lua/lua.h>#include <geogram/basic/assert.h>#include <geogram/basic/argused.h>#include <geogram/basic/numeric.h>#include <geogram/basic/vecg.h>#include <geogram/basic/matrix.h>Go to the source code of this file.
Namespaces | |
| namespace | GEO |
| Global Vorpaline namespace. | |
Functions | |
| template<class T > | |
| bool | GEO::lua_toveccomp (lua_State *L, int index, T &result) |
| Converts a lua object into a value. | |
| template<> | |
| bool | GEO::lua_toveccomp< double > (lua_State *L, int index, double &result) |
| template<> | |
| bool | GEO::lua_toveccomp< float > (lua_State *L, int index, float &result) |
| template<> | |
| bool | GEO::lua_toveccomp< Numeric::int32 > (lua_State *L, int index, Numeric::int32 &result) |
| template<unsigned int N, class T > | |
| bool | GEO::lua_tovec (lua_State *L, int index, ::GEO::vecng< N, T > &result) |
| Converts a lua object into a Geogram vec2,vec3 or vec4. | |
| template<unsigned int N, class T > | |
| bool | GEO::lua_tomat (lua_State *L, int index, ::GEO::Matrix< N, T > &result) |
| Converts a Lua object into a Geogram mat2, mat3 or mat4. | |
| template<class T > | |
| void | GEO::lua_pushveccomp (lua_State *L, T val) |
| Pushes a vector component onto the Lua stack. | |
| template<> | |
| void | GEO::lua_pushveccomp (lua_State *L, double val) |
| template<> | |
| void | GEO::lua_pushveccomp (lua_State *L, float val) |
| template<> | |
| void | GEO::lua_pushveccomp (lua_State *L, Numeric::int32 val) |
| template<unsigned int N, class T > | |
| void | GEO::lua_push (lua_State *L, const ::GEO::vecng< N, T > &V) |
| Pushes a vector onto the Lua stack. | |
| template<unsigned int N, class T > | |
| void | GEO::lua_push (lua_State *L, const ::GEO::Matrix< N, T > &M) |
| Pushes a matrix onto the Lua stack. | |
Functions to exchange vec2,vec3,vec4 and mat4 objects between Lua and Geogram.
Definition in file lua_vec_mat.h.