-Added lua aux libs, changed some function names. To check.
This commit is contained in:
6
lua.cpp
6
lua.cpp
@@ -718,7 +718,7 @@ void push_lua_funcs() {
|
||||
lua_pushcfunction(L,cpp_rect); lua_setglobal(L, "rect");
|
||||
lua_pushcfunction(L,cpp_rectfill); lua_setglobal(L, "rectfill");
|
||||
lua_pushcfunction(L,cpp_fillp); lua_setglobal(L, "fillp");
|
||||
lua_pushcfunction(L,cpp_print); lua_setglobal(L, "print");
|
||||
lua_pushcfunction(L,cpp_print); lua_setglobal(L, "prnt");
|
||||
lua_pushcfunction(L,cpp_clip); lua_setglobal(L, "clip");
|
||||
lua_pushcfunction(L,cpp_camera); lua_setglobal(L, "camera");
|
||||
lua_pushcfunction(L,cpp_circ); lua_setglobal(L, "circ");
|
||||
@@ -783,7 +783,7 @@ void push_lua_funcs() {
|
||||
lua_pushcfunction(L,cpp_stopmusic); lua_setglobal(L, "stopmusic");
|
||||
lua_pushcfunction(L,cpp_ismusicplaying); lua_setglobal(L, "ismusicplaying");
|
||||
|
||||
lua_pushcfunction(L,cpp_exit); lua_setglobal(L, "exit");
|
||||
lua_pushcfunction(L,cpp_exit); lua_setglobal(L, "quit");
|
||||
|
||||
lua_pushinteger(L, 0); lua_setglobal(L, "KEY_UNKNOWN");
|
||||
lua_pushinteger(L, 4); lua_setglobal(L, "KEY_A");
|
||||
@@ -899,7 +899,7 @@ void push_lua_funcs() {
|
||||
|
||||
void lua_init(char* filenames) {
|
||||
L = luaL_newstate();
|
||||
|
||||
luaL_openlibs(L);
|
||||
push_lua_funcs();
|
||||
|
||||
char *pointer = filenames;
|
||||
|
||||
Reference in New Issue
Block a user