Urho.Urho2D.Sprite2D Class

Sprite loaded from a file.

See Also: Sprite2D

Syntax

public class Sprite2D : Resource

Remarks

An image defined with texture, texture rectangle and hot spot.

Requirements

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

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

See Also: Resource

Public Constructors

Constructs a new instance of Urho.Urho2D.Sprite2D which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.Urho2D.Sprite2D, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.Urho2D.Sprite2D 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

HotSpotVector2. Return hot spot. Or Set hot spot.
OffsetIntVector2. Return offset. Or Set offset.
RectangleIntRect. Return rectangle. Or Set rectangle.
SpriteSheetSpriteSheet2D. Return sprite sheet. Or Set sprite sheet.
TextureTexture2D. Return texture. Or Set texture.
TextureEdgeOffsetSingle. Texture edge offset in pixels
[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
override
EndLoad() : Boolean
Finish resource loading. Always called from the main thread. Return true if successful.
static
RegisterObject(Context)
Register object factory.
static
SaveToResourceRef(Sprite2D) : ResourceRef
Save sprite to ResourceRef.