lua/wrappers/gfx/lua_asset.cpp
/**
	 * Sets the flags for how the texture repreats.
	 *
	 * @param boolean repeat_x If the texture will repeat along the x direction.
	 * @param boolean repeat_y If the texture will repeat along the y direction.
	 * @returns am.asset This
	 */
Sets the flags for how the texture repreats.
@param boolean repeat_x If the texture will repeat along the x direction.
@param boolean repeat_y If the texture will repeat along the y direction.
Sets the flags for how the texture repreats . @param boolean repeat_x If the texture will repeat along the x direction . @param boolean repeat_y If the texture will repeat along the y direction .
int Asset_repeat(lua_State *lua)
	{
		Asset *asset = castUData<Asset>(lua, 1);
		if (asset)
		{
			int args = lua_gettop(lua);
			if (args == 1)
			{
				lua_pushboolean(lua, asset->getRepeatX());
				lua_pushboolean(lua, asset->getRepeatY());
				return 2;
			}
			else if (lua_isbool(lua, 2) && (args == 2 || (args == 3 && lua_isbool(lua, 3))))
			{
				asset->setRepeatX(lua_tobool(lua, 2));
				if (args == 3)
				{
					asset->setRepeatY(lua_tobool(lua, 3));
				}
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "repeat", 2, "boolean repeat_x", "boolean repeat_x, boolean repeat_y");
		}
		return LuaState::expectedContext(lua, "repeat", "am.asset");
	}
int Asset_repeat ( lua_State * lua ) { Asset * asset = castUData < Asset > ( lua , 1 ) ; if ( asset ) { int args = lua_gettop ( lua ) ; if ( args == 1 ) { lua_pushboolean ( lua , asset -> getRepeatX ( ) ) ; lua_pushboolean ( lua , asset -> getRepeatY ( ) ) ; return 2 ; } else if ( lua_isbool ( lua , 2 ) && ( args == 2 || ( args == 3 && lua_isbool ( lua , 3 ) ) ) ) { asset -> setRepeatX ( lua_tobool ( lua , 2 ) ) ; if ( args == 3 ) { asset -> setRepeatY ( lua_tobool ( lua , 3 ) ) ; } lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the flags for how the texture repreats.
Sets the flags for how the texture repreats .