Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
interop.h File Reference

Functions to exchange objects between Lua and Graphite. More...

#include <string>

Go to the source code of this file.

Classes

class  OGF::GOMLua::StackDebugger
 Small class to debug wrong management of Lua stack. More...
 

Namespaces

namespace  OGF
 Global Graphite namespace.
 

Macros

#define geo_lua_check_stack(L)
 

Functions

void OGF::GOMLua::lua_pushgraphiteval (lua_State *L, const Any &value)
 Pushes a value on the LUA stack.
 
void OGF::GOMLua::lua_tographiteval (lua_State *L, int index, Any &result, MetaType *mtype=nullptr)
 Converts a LUA value to a graphite value stored in an Any.
 

Detailed Description

Functions to exchange objects between Lua and Graphite.

Definition in file interop.h.

Macro Definition Documentation

◆ geo_lua_check_stack

#define geo_lua_check_stack (   L)

Definition at line 103 of file interop.h.

Function Documentation

◆ lua_pushgraphiteval()

void OGF::GOMLua::lua_pushgraphiteval ( lua_State *  L,
const Any value 
)

Pushes a value on the LUA stack.

The GOM meta type mtype is used to determine the type of the LUA value pushed onto the stack.

Parameters
[in]La pointer to the LUA state.
[in]valuethe value represented by an Any

◆ lua_tographiteval()

void OGF::GOMLua::lua_tographiteval ( lua_State *  L,
int  index,
Any result,
MetaType mtype = nullptr 
)

Converts a LUA value to a graphite value stored in an Any.

Parameters
[in]La pointer to the LUA state.
[in]indexthe stack index of the LUA object to be converted.
[out]resultthe result wrapped in an Any
[in]mtypethe optional desired metatype