Class TextureHandle
java.lang.Object
dev.pfaff.altargui.texture.TextureHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
final int
The height of the texture.final int
The width of the texture. -
Method Summary
Modifier and TypeMethodDescriptionint
texToAtlasX
(float x) int
texToAtlasY
(float y) toString()
byte
unitU()
byte
unitV()
static TextureHandle
unmanaged
(int layer, byte u, byte v, TextureAtlasScale atlasScale, int textureWidth, int textureHeight)
-
Field Details
-
layer
public final int layer -
textureWidth
public final int textureWidthThe width of the texture. -
textureHeight
public final int textureHeightThe height of the texture.
-
-
Method Details
-
unmanaged
public static TextureHandle unmanaged(int layer, byte u, byte v, TextureAtlasScale atlasScale, int textureWidth, int textureHeight) -
unitU
public byte unitU() -
unitV
public byte unitV() -
texToAtlasX
public int texToAtlasX(float x) -
texToAtlasY
public int texToAtlasY(float y) -
toString
-