DI-Guy SDK Documentation  13.1
diguy_module_script_lua.h File Reference
#include <declspec_diguy.h>

Go to the source code of this file.

Functions

int diguy_script_lua_initialize ()
 This function tells DI-Guy that it should use the Lua interpreter for interpreting scripts. More...
 
int diguy_script_lua_deinitialize ()
 This function tells DI-Guy that it should shut down the Lua interpreter for interpreting scripts. More...
 

Function Documentation

int diguy_script_lua_initialize ( )

This function tells DI-Guy that it should use the Lua interpreter for interpreting scripts.

It should be called along with the other diguy_*_initialize() calls, after the primary graphics initialization is made.

Returns:

0 on success, -1 on failure

Example:

1 diguy_ogl_initialize(NULL);
2 diguy_script_lua_initialize();
int diguy_script_lua_deinitialize ( )

This function tells DI-Guy that it should shut down the Lua interpreter for interpreting scripts.

It should be called along with the other diguy_*_deinitialize() calls, before the primary diguy_deinitialize() call.

Returns:

0 on success, -1 on failure

Example:

1 diguy_script_lua_deinitialize();
2 diguy_deinitialize();