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
RndColors
public int[] RndColors
Field Value
- int[]
RndColorsLength
public const int RndColorsLength = 30
Field Value
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
atlasTextureId
The OpenGL textureid
public int atlasTextureId
Field Value
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
x1
The x coordinate of the texture origin point
public float x1
Field Value
x2
The x coordinate of the texture end point
public float x2
Field Value
y1
The y coordinate of the texture origin point
public float y1
Field Value
y2
The y coordinate of the texture end point
public float y2
Field Value
Methods
Clone()
public TextureAtlasPosition Clone()