lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Consider this:

static int tex_draw(lua_State *L)
{
    int a = luaL_checkint(L, 1);
    int b = luaL_checkint(L, 2);
    int c = luaL_checkint(L, 3);
    int d = luaL_checkint(L, 4);
    static_cast<Texture*>(fl->GetData(a, TYPE_TEXTURE))
	->GetImg()->Draw(b, c, d);
    return 0;
}

But please use appropriate names for the a,b,c,d variables.

					-Mark