|
@@ -184,6 +184,20 @@ int w_SpriteBatch_setColor(lua_State *L)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int w_SpriteBatch_isEmpty(lua_State *L)
|
|
|
|
+{
|
|
|
|
+ SpriteBatch *t = luax_checkspritebatch(L, 1);
|
|
|
|
+ luax_pushboolean(L, t->isEmpty());
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+int w_SpriteBatch_isFull(lua_State *L)
|
|
|
|
+{
|
|
|
|
+ SpriteBatch *t = luax_checkspritebatch(L, 1);
|
|
|
|
+ luax_pushboolean(L, t->isFull());
|
|
|
|
+ return 1;
|
|
|
|
+}
|
|
|
|
+
|
|
static const luaL_Reg functions[] =
|
|
static const luaL_Reg functions[] =
|
|
{
|
|
{
|
|
{ "add", w_SpriteBatch_add },
|
|
{ "add", w_SpriteBatch_add },
|
|
@@ -196,6 +210,8 @@ static const luaL_Reg functions[] =
|
|
{ "setImage", w_SpriteBatch_setImage },
|
|
{ "setImage", w_SpriteBatch_setImage },
|
|
{ "getImage", w_SpriteBatch_getImage },
|
|
{ "getImage", w_SpriteBatch_getImage },
|
|
{ "setColor", w_SpriteBatch_setColor },
|
|
{ "setColor", w_SpriteBatch_setColor },
|
|
|
|
+ { "isEmpty", w_SpriteBatch_isEmpty },
|
|
|
|
+ { "isFull", w_SpriteBatch_isFull },
|
|
{ 0, 0 }
|
|
{ 0, 0 }
|
|
};
|
|
};
|
|
|
|
|