CocosSharp.CCSprite Class
is a 2d image ( http://en.wikipedia.org/wiki/Sprite_(computer_graphics) )

See Also: CCSprite Members

Syntax

public class CCSprite : CCNode, ICCTexture

Remarks

CocosSharp.CCSprite is a 2d image ( http://en.wikipedia.org/wiki/Sprite_(computer_graphics) )

CocosSharp.CCSprite http://en.wikipedia.org/wiki/Sprite_(computer_graphics)

CocosSharp.CCSprite can be created with an image, or with a sub-rectangle of an image.

CocosSharp.CCSprite

If the parent or any of its ancestors is a CocosSharp.CCSpriteBatchNode then the following features/limitations are valid

CocosSharp.CCSpriteBatchNode

If the parent is an standard CocosSharp.CCNode, then CocosSharp.CCSprite behaves like any other CocosSharp.CCNode:

CocosSharp.CCNode CocosSharp.CCSprite CocosSharp.CCNode

The default anchorPoint in CocosSharp.CCSprite is (0.5, 0.5).

CocosSharp.CCSprite Features when the parent is a BatchNode:MUCH faster rendering, specially if the SpriteBatchNode has many children. All the children will be drawn in a single batch. Features when the parent is a BatchNode:MUCH faster rendering, specially if the SpriteBatchNode has many children. All the children will be drawn in a single batch. MUCH faster rendering, specially if the SpriteBatchNode has many children. All the children will be drawn in a single batch. MUCH faster rendering, specially if the SpriteBatchNode has many children. All the children will be drawn in a single batch. LimitationsCamera is not supported yet (eg: OrbitCamera action doesn't work)GridBase actions are not supported (eg: Lens, Ripple, Twirl)The Alias/Antialias property belongs to SpriteBatchNode, so you can't individually set the aliased property.The Blending function property belongs to SpriteBatchNode, so you can't individually set the blending function property.Parallax scroller is not supported, but can be simulated with a "proxy" sprite. LimitationsCamera is not supported yet (eg: OrbitCamera action doesn't work)GridBase actions are not supported (eg: Lens, Ripple, Twirl)The Alias/Antialias property belongs to SpriteBatchNode, so you can't individually set the aliased property.The Blending function property belongs to SpriteBatchNode, so you can't individually set the blending function property.Parallax scroller is not supported, but can be simulated with a "proxy" sprite. Camera is not supported yet (eg: OrbitCamera action doesn't work) Camera is not supported yet (eg: OrbitCamera action doesn't work) GridBase actions are not supported (eg: Lens, Ripple, Twirl) GridBase actions are not supported (eg: Lens, Ripple, Twirl) The Alias/Antialias property belongs to SpriteBatchNode, so you can't individually set the aliased property. The Alias/Antialias property belongs to SpriteBatchNode, so you can't individually set the aliased property. The Blending function property belongs to SpriteBatchNode, so you can't individually set the blending function property. The Blending function property belongs to SpriteBatchNode, so you can't individually set the blending function property. Parallax scroller is not supported, but can be simulated with a "proxy" sprite. Parallax scroller is not supported, but can be simulated with a "proxy" sprite. It supports blending functions It supports blending functions It supports aliasing / antialiasing It supports aliasing / antialiasing But the rendering will be slower: 1 draw per children. But the rendering will be slower: 1 draw per children.

Requirements

Namespace: CocosSharp
Assembly: CocosSharp (in CocosSharp.dll)