[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A newbie has problems with Lua
- From: Mark Edgar <medgar@...>
- Date: Mon, 14 Aug 2006 13:26:32 -0700
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