Graphite
Version 3
An experimental 3D geometry processing program
|
LUA bindings for geogram IO and filesystem functions. More...
Go to the source code of this file.
Functions | |
void | init_lua_io (lua_State *L) |
Initializes LUA filesystem operations. More... | |
void | register_embedded_lua_file (const char *filename, const char *data) |
Registers an "embedded file", i.e. a static string with some LUA sources in it. More... | |
void | get_embedded_lua_file (const char *filename, const char **data) |
Gets an "embedded file" by its filename. More... | |
LUA bindings for geogram IO and filesystem functions.
Definition in file lua_io.h.
void get_embedded_lua_file | ( | const char * | filename, |
const char ** | data | ||
) |
Gets an "embedded file" by its filename.
[in] | filename | the name that was previously used to register the file, using register_embedded_file() |
[out] | data | a pointer to the static string with the "file" data, or nullptr if no file was registered with that name. |
void init_lua_io | ( | lua_State * | L | ) |
Initializes LUA filesystem operations.
[in] | L | a pointer to the LUA state. |
void register_embedded_lua_file | ( | const char * | filename, |
const char * | data | ||
) |
Registers an "embedded file", i.e. a static string with some LUA sources in it.
[in] | filename | the name of the "file" to be used to retreive the data. |
[in] | data | the static string with the sources associated with the file. |