Example #1
0
File: seed.c Project: Chingliu/seed
void init_preloaders(lua_State *L)
{
    lua_getglobal(L, "package");
    lua_getfield(L, -1, "preload");

    // add your custom loaders here, they look like this:
    REGISTER_LOADER("seed", luaopen_seed);
    
    lua_pop(L, 2);
}
Example #2
0
void init_preloaders(lua_State *L)
{
    lua_getglobal(L, "package");
    lua_getfield(L, -1, "preload");

    // add your custom loaders here, they look like this:
    REGISTER_LOADER("collision.native", luaopen_collision_native);
    REGISTER_LOADER("gl", luaopen_gl);
    REGISTER_LOADER("glfw", luaopen_glfw);
    REGISTER_LOADER("glu", luaopen_glu);
    REGISTER_LOADER("log", luaopen_log);
    REGISTER_LOADER("memarray", luaopen_memarray);
    REGISTER_LOADER("mixer", luaopen_mixer);
    REGISTER_LOADER("stb_image", luaopen_stb_image);

    // each night I pray that I might one day happen upon a less disgusting way
    // of doing this
#ifdef EXTRA_LOADERS
#include EXTRA_LOADERS
#endif

    lua_pop(L, 2);
}
Example #3
0
void UIManager::createUILoader()
{
    REGISTER_LOADER(LoginLayer);
    REGISTER_LOADER(LordDeskLayer);
}