Urho.Urho2D.SpriteSheet2D Class

Sprite sheet - texture atlas image that packs multiple Sprite2D images.

See Also: SpriteSheet2D

Syntax

public class SpriteSheet2D : Resource

Remarks

Texture atlas image (that packs multiple Sprite2D images).

Spritesheets can be created using tools like ShoeBox (http://renderhjs.net/shoebox/), darkFunction Editor (http://darkfunction.com/editor/), SpriteHelper (http://www.gamedevhelper.com/spriteHelper2Info.php), TexturePacker (http://www.codeandweb.com/texturepacker), These tools will generate an image file and a xml file mapping coordinates and size for each individual image. Note that Urho2D uses same xml file format as Sparrow/Starling engines.

Requirements

Namespace: Urho.Urho2D
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Urho2D.SpriteSheet2D are listed below.

See Also: Resource

Public Constructors

Constructs a new instance of Urho.Urho2D.SpriteSheet2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.SpriteSheet2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.SpriteSheet2D linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

TextureTexture2D. Return texture.
[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

override
BeginLoad(File) : Boolean
override
BeginLoad(MemoryBuffer) : Boolean
DefineSprite(String, IntRect, Vector2, IntVector2)
Define sprite.
override
EndLoad() : Boolean
Finish resource loading. Always called from the main thread. Return true if successful.
GetSprite(String) : Sprite2D
Return sprite.
static
RegisterObject(Context)
Register object factory.