12 lua_getglobal(L,
"native_callback_loop");
13 int native_callback_loop = luaL_ref(L, LUA_REGISTRYINDEX);
15 lua_getglobal(L,
"native_callback_draw");
16 int native_callback_draw = luaL_ref(L, LUA_REGISTRYINDEX);
18 lua_getglobal(L,
"native_callback_keyboard");
19 int native_callback_keyboard = luaL_ref(L, LUA_REGISTRYINDEX);
21 static uint8_t page = 0;
22 static uint8_t frameskip = 0;
void draw_callback_update(lua_State *L, int callback)
void draw_cmd_mode(uint8_t drawmode, uint8_t flushmode, uint8_t change_mode, uint8_t change_flush)
void draw_queue_burn(uint8_t page)
void draw_queue_page(uint8_t page)
void keys_callback_update(lua_State *L, int callback)
void loop_callback_update(lua_State *L, int callback, uint8_t dt)
void runtime(lua_State *L)