Package fonts

Class Glyph


public class Glyph extends Sprite
This class represents a font glyph.
Author:
Asher Haun
  • 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 Glyph
      height - Height of the Glyph
      x - X coordinate on the font texture
      y - Y coordinate on the font texture
  • Method Details

    • calculateUVs

      public void calculateUVs(Texture texture)
    • getUV

      public org.joml.Vector2f[] getUV()