Package com.t3_tp3d.game.util
Class TextureUtils
- java.lang.Object
-
- com.t3_tp3d.game.util.TextureUtils
-
public class TextureUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_SPRITE_ID
static int
SPRITE_HEAD_HEIGHT
static double
SPRITE_HEAD_SCALE
static int
SPRITE_HEIGHT
static int
SPRITE_WIDTH
-
Constructor Summary
Constructors Constructor Description TextureUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float[]
getPatientTextureCoordinates(int id)
static java.awt.image.BufferedImage
getPictureFromPatientId(int id)
static org.joml.Vector2i
getTextureSize(java.lang.String path)
static java.nio.ByteBuffer
loadImageToByteBuffer(java.lang.String path)
-
-
-
Field Detail
-
SPRITE_WIDTH
public static final int SPRITE_WIDTH
- See Also:
- Constant Field Values
-
SPRITE_HEIGHT
public static final int SPRITE_HEIGHT
- See Also:
- Constant Field Values
-
SPRITE_HEAD_HEIGHT
public static final int SPRITE_HEAD_HEIGHT
- See Also:
- Constant Field Values
-
MAX_SPRITE_ID
public static final int MAX_SPRITE_ID
- See Also:
- Constant Field Values
-
SPRITE_HEAD_SCALE
public static final double SPRITE_HEAD_SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPatientTextureCoordinates
public static float[] getPatientTextureCoordinates(int id)
-
getPictureFromPatientId
public static java.awt.image.BufferedImage getPictureFromPatientId(int id)
-
loadImageToByteBuffer
public static java.nio.ByteBuffer loadImageToByteBuffer(java.lang.String path)
-
getTextureSize
public static org.joml.Vector2i getTextureSize(java.lang.String path)
-
-