lua/wrappers/gfx/lua_asset.cpp
/**
	 * Removes the given texture from the asset list.
	 *
	 * @param am.texture texture The texture to remove.
	 * @returns am.asset This
	 */
Removes the given texture from the asset list.
Removes the given texture from the asset list .
int Asset_remove_texture(lua_State *lua)
	{
		Asset *asset = castUData<Asset>(lua, 1);
		if (asset)
		{
			if (lua_isstr(lua, 2))
			{
				asset->removeTexture(lua_tostring(lua, 2));
				lua_first(lua);
			}
			Texture *texture = castUData<Texture>(lua, 2);
			if (texture)
			{
				asset->removeTexture(texture);
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "remove_texture", 2, "am.texture texture", "string filename");
		}
		return LuaState::expectedContext(lua, "remove_texture", "am.asset");
	}
int Asset_remove_texture ( lua_State * lua ) { Asset * asset = castUData < Asset > ( lua , 1 ) ; if ( asset ) { if ( lua_isstr ( lua , 2 ) ) { asset -> removeTexture ( lua_tostring ( lua , 2 ) ) ; lua_first ( lua ) ; } Texture * texture = castUData < Texture > ( lua , 2 ) ; if ( texture ) { asset -> removeTexture ( texture ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes the given texture from the asset list.
Removes the given texture from the asset list .