Пример #1
0
static int l_srl_append(lua_State *L)
{
    THSpriteRenderList *pSrl = luaT_testuserdata<THSpriteRenderList>(L);
    pSrl->appendSprite((unsigned int)luaL_checkint(L, 2),
                       luaL_checkint(L, 3), luaL_checkint(L, 4));
    lua_settop(L, 1);
    return 1;
}
Пример #2
0
static int l_srl_append(lua_State *L)
{
    THSpriteRenderList *pSrl = luaT_testuserdata<THSpriteRenderList>(L);
    pSrl->appendSprite(luaL_checkinteger(L, 2),
                       static_cast<int>(luaL_checkinteger(L, 3)), static_cast<int>(luaL_checkinteger(L, 4)));
    lua_settop(L, 1);
    return 1;
}