Table of Contents

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 string
category SpriteCategory
width int
height int

Properties

Category

public SpriteCategory Category { get; }

Property Value

SpriteCategory

Height

public int Height { get; }

Property Value

int

MaxU

public float MaxU { get; }

Property Value

float

MaxV

public float MaxV { get; }

Property Value

float

MinU

public float MinU { get; }

Property Value

float

MinV

public float MinV { get; }

Property Value

float

Name

public string Name { get; }

Property Value

string

SheetHeight

public int SheetHeight { get; }

Property Value

int

SheetID

public int SheetID { get; set; }

Property Value

int

SheetWidth

public int SheetWidth { get; }

Property Value

int

SheetX

public int SheetX { get; set; }

Property Value

int

SheetY

public int SheetY { get; set; }

Property Value

int

Texture

public Texture Texture { get; }

Property Value

Texture

Width

public int Width { get; }

Property Value

int

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 float
screenY float
outVertices float[]
outUvs float[]
verticesStartIndex int
uvsStartIndex 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 float
screenY float
outVertices float[]
outUvs float[]
verticesStartIndex int
uvsStartIndex int
scale float
customWidth float
customHeight float
horizontalFlip bool
verticalFlip bool

FillTextureCoordinates(float[], int, bool, bool)

public void FillTextureCoordinates(float[] outUVs, int uvsStartIndex, bool horizontalFlip, bool verticalFlip)

Parameters

outUVs float[]
uvsStartIndex int
horizontalFlip bool
verticalFlip bool

UpdateInitValues()

public void UpdateInitValues()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).