Class SpritePart
- Namespace
- TaleWorlds.TwoDimension
- Assembly
- TaleWorlds.TwoDimension.dll
public class SpritePart
- Inheritance
-
SpritePart
- Inherited Members
Constructors
SpritePart(string, SpriteCategory, int, int)
public SpritePart(string name, SpriteCategory category, int width, int height)
Parameters
name
stringcategory
SpriteCategorywidth
intheight
int
Properties
Category
public SpriteCategory Category { get; }
Property Value
Height
public int Height { get; }
Property Value
MaxU
public float MaxU { get; }
Property Value
MaxV
public float MaxV { get; }
Property Value
MinU
public float MinU { get; }
Property Value
MinV
public float MinV { get; }
Property Value
Name
public string Name { get; }
Property Value
SheetHeight
public int SheetHeight { get; }
Property Value
SheetID
public int SheetID { get; set; }
Property Value
SheetWidth
public int SheetWidth { get; }
Property Value
SheetX
public int SheetX { get; set; }
Property Value
SheetY
public int SheetY { get; set; }
Property Value
Texture
public Texture Texture { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
DrawSpritePart(float, float, float[], float[], int, int)
public void DrawSpritePart(float screenX, float screenY, float[] outVertices, float[] outUvs, int verticesStartIndex, int uvsStartIndex)
Parameters
screenX
floatscreenY
floatoutVertices
float[]outUvs
float[]verticesStartIndex
intuvsStartIndex
int
DrawSpritePart(float, float, float[], float[], int, int, float, float, float, bool, bool)
public void DrawSpritePart(float screenX, float screenY, float[] outVertices, float[] outUvs, int verticesStartIndex, int uvsStartIndex, float scale, float customWidth, float customHeight, bool horizontalFlip, bool verticalFlip)
Parameters
screenX
floatscreenY
floatoutVertices
float[]outUvs
float[]verticesStartIndex
intuvsStartIndex
intscale
floatcustomWidth
floatcustomHeight
floathorizontalFlip
boolverticalFlip
bool
FillTextureCoordinates(float[], int, bool, bool)
public void FillTextureCoordinates(float[] outUVs, int uvsStartIndex, bool horizontalFlip, bool verticalFlip)
Parameters
UpdateInitValues()
public void UpdateInitValues()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).