int ejoy2d_sprite(lua_State *L) { luaL_Reg l[] ={ { "new", lnew }, { "label", lnewlabel }, { "proxy", lnewproxy }, { "dfont", lnewdfont }, { "delete_dfont", ldeldfont }, { "new_material", lnewmaterial }, { "enable_visible_test", lenable_visible_test }, { "update_texture", lupdate_texture }, { NULL, NULL }, }; luaL_newlib(L,l); lmethod(L); lua_setfield(L, -2, "method"); lgetter(L); lua_setfield(L, -2, "get"); lsetter(L); lua_setfield(L, -2, "set"); ldfont_mothod(L); lua_setfield(L, -2, "dfont_method"); return 1; }
int ejoy2d_sprite(lua_State *L) { luaL_Reg l[] ={ { "new", lnew }, { "label", lnewlabel }, { NULL, NULL }, }; luaL_newlib(L,l); lmethod(L); lua_setfield(L, -2, "method"); lgetter(L); lua_setfield(L, -2, "get"); lsetter(L); lua_setfield(L, -2, "set"); return 1; }
int ejoy2d_sprite(lua_State *L) { luaL_Reg l[] ={ { "new", lnew }, { "label", lnewlabel }, { "label_gen_outline", lgenoutline }, { "enable_visible_test", lenable_visible_test }, { NULL, NULL }, }; luaL_newlib(L,l); lmethod(L); lua_setfield(L, -2, "method"); lgetter(L); lua_setfield(L, -2, "get"); lsetter(L); lua_setfield(L, -2, "set"); return 1; }