Package fonts
Class Glyph
java.lang.Object
graphics.Sprite
fonts.Glyph
This class represents a font glyph.
- Author:
- Asher Haun
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intorg.joml.Vector2f[]final intfinal intfinal int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class graphics.Sprite
getHeight, getTexture, getTextureCoordinates, getTextureID, getWidth, setTexture
-
Field Details
-
width
public final int width -
height
public final int height -
x
public final int x -
y
public final int y -
uvCoordinates
public org.joml.Vector2f[] uvCoordinates
-
-
Constructor Details
-
Glyph
public Glyph(int width, int height, int x, int y) Creates a font Glyph.- Parameters:
width- Width of the Glyphheight- Height of the Glyphx- X coordinate on the font texturey- Y coordinate on the font texture
-
-
Method Details
-
calculateUVs
-
getUV
public org.joml.Vector2f[] getUV()
-