|
Graphite Version 3
An experimental 3D geometry processing program
|
Functions to exchange vec2,vec3,vec4 and mat4 objects between Lua and Graphite. More...
Go to the source code of this file.
Namespaces | |
| namespace | OGF |
| Global Graphite namespace. | |
Functions | |
| bool | OGF::GOMLua::lua_to_graphite_mat_vec (lua_State *L, int index, Any &result, MetaType *mtype) |
| Converts a Lua object into a Graphite vec or mat type. | |
| bool | OGF::GOMLua::lua_to_graphite_vec2i (lua_State *L, int index, vec2i &result) |
| Converts a Lua object into a Graphite vec2i. | |
| bool | OGF::GOMLua::push_mat_vec (lua_State *L, const Any &matvec) |
| Pushes a Graphite object onto the Lua stack. | |
Functions to exchange vec2,vec3,vec4 and mat4 objects between Lua and Graphite.
Definition in file vec_mat_interop.h.
| bool OGF::GOMLua::lua_to_graphite_mat_vec | ( | lua_State * | L, |
| int | index, | ||
| Any & | result, | ||
| MetaType * | mtype | ||
| ) |
Converts a Lua object into a Graphite vec or mat type.
Works with vec2, vec3, vec4 of doubles and integers, with mat4 of doubles and Color.
| [in] | L | a pointer to the Lua state |
| [in] | index | the index of the Lua object to be converted |
| [out] | result | the result, as an Any |
| [in] | mtype | a pointer to the expected meta-type |
| true | if conversion was successful |
| false | otherwise |
Converts a Lua object into a Graphite vec2i.
| [in] | L | a pointer to the Lua state |
| [in] | index | the index of the Lua object to be converted |
| [out] | result | a reference to the result, as an vec2i |
| true | if conversion was successful |
| false | otherwise |
Pushes a Graphite object onto the Lua stack.
Works with vec2, vec3, vec4 of doubles and integers, mat4 of doubles and Color.
| [in] | matvec | the input vec or mat stored in an Any |
| true | if conversion was successful |
| false | otherwise |