Class Sprite
- Namespace
- Lime
- Assembly
- Lime.dll
public sealed class Sprite : ISprite
- Inheritance
-
Sprite
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
Sprite(SpriteData)
public Sprite(SpriteData data)
Parameters
data
SpriteData
Properties
AtlasSize
public Vector2 AtlasSize { get; }
Property Value
- Vector2
AtlasTexture
public ITexture AtlasTexture { get; }
Property Value
- ITexture
IndexCount
public int IndexCount { get; }
Property Value
- int
IsRectangular
public bool IsRectangular { get; }
Property Value
- bool
Size
public Vector2 Size { get; }
Property Value
- Vector2
VertexCount
public int VertexCount { get; }
Property Value
- int
Methods
GetIndex(int)
public ushort GetIndex(int index)
Parameters
index
int
Returns
- ushort
GetUV(int)
public Vector2 GetUV(int index)
Parameters
index
int
Returns
- Vector2
GetVertex(int)
public Vector2 GetVertex(int index)
Parameters
index
int
Returns
- Vector2
ValidateRectangular(Node, string)
public bool ValidateRectangular(Node node, string useContext)
Parameters
node
Node
useContext
string
Returns
- bool