<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: How to swap texture for AtlasSpriteManager without creating a new instance</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/1139</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 01:44:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/1139" rel="self" type="application/rss+xml" />

		<item>
			<title>Blue Ether on "How to swap texture for AtlasSpriteManager without creating a new instance"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1139#post-6847</link>
			<pubDate>Wed, 05 Aug 2009 19:57:05 +0000</pubDate>
			<dc:creator>Blue Ether</dc:creator>
			<guid isPermaLink="false">6847@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>[SOLVED]  Using TextureMgr with the texture property of these objects is exactly what I needed for what I'm trying to do!!</p>
<p>TextureMgr is neat.
</p></description>
		</item>
		<item>
			<title>Blue Ether on "How to swap texture for AtlasSpriteManager without creating a new instance"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/1139#post-6831</link>
			<pubDate>Wed, 05 Aug 2009 17:57:45 +0000</pubDate>
			<dc:creator>Blue Ether</dc:creator>
			<guid isPermaLink="false">6831@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>My app has a configuration screen that causes the appearance of certain in-game objects to change.  These include both Atlas Sprites via an AtlasSpriteManager and full-screen Sprites.  I'm trying to find a way of changing the texture used for these objects without re-initializing them.  My intention is to have three different textures with the frames located in the same spot on each texture, and simply swap the texture used by the ASM when the configuration changes.</p>
<p>Is there some other way of replacing the texture the ASM uses that doesn't require re-initializing the ASM?</p>
<p>I don't want to increase the size of the texture to include the other options because that would be wasteful and ultimately as the scope expands it would be a limiting factor.  There's no reason to have the textures for other options in memory unless they are needed for the active configuration.  There will only be one set used at a time, and I can deal with a slight lag on exiting the configuration screen.
</p></description>
		</item>

	</channel>
</rss>

