Table of Contents

Class TextureAtlasPosition

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

The position of a texture inside an atlas

public class TextureAtlasPosition
Inheritance
TextureAtlasPosition
Inherited Members
Extension Methods

Fields

AvgColor

public int AvgColor

Field Value

int

RndColors

public int[] RndColors

Field Value

int[]

RndColorsLength

public const int RndColorsLength = 30

Field Value

int

atlasNumber

A sequential number in which atlas this position is in. Atlasses for a given type are sequentially numbered if more than one atlas was required to hold all the textures

public byte atlasNumber

Field Value

byte

atlasTextureId

The OpenGL textureid

public int atlasTextureId

Field Value

int

reloadIteration

A sequential number that goes up with every texture atlas reload, used to see if this texpos is still fresh

public short reloadIteration

Field Value

short

x1

The x coordinate of the texture origin point

public float x1

Field Value

float

x2

The x coordinate of the texture end point

public float x2

Field Value

float

y1

The y coordinate of the texture origin point

public float y1

Field Value

float

y2

The y coordinate of the texture end point

public float y2

Field Value

float

Methods

Clone()

public TextureAtlasPosition Clone()

Returns

TextureAtlasPosition