Hi,
In 0.7.3 I had :
[Texture2D setAntiAliasTexParameters];
It is now an instance method. I am supposed to call the method on the texture or each sprite in my game ?
A fast, easy to use, free, and community supported 2D game engine
Hi,
In 0.7.3 I had :
[Texture2D setAntiAliasTexParameters];
It is now an instance method. I am supposed to call the method on the texture or each sprite in my game ?
Yup. That's exactly how it works in 0.8. Would be nice if there were both an instance and a class method for specifying a default, but as far as I know for now you have to set it texture by texture.
The programming guide documentation for "How to create a TMX node" has a snippet
at http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:tiled_maps
// iterate over all the "layers" (atlas sprite managers)
// and set them as 'antialias'
for( TMXLayer* child in [map children] ) {
[[child texture] setAntiAliasTexParameters];
}
so I would assume you could do
for( sprite* child in [myLayer children] ) {
[[child texture] setAntiAliasTexParameters];
}
assuming that all the children in the layer are sprites.
Regards,
Derek.
You must log in to post.