Class Character


  • public class Character
    extends Object
    Class that represent a character of a font
    Author:
    Darius Dinger
    • Constructor Detail

      • Character

        public Character​(float offsetx,
                         float offsety,
                         float advancex,
                         IndexBuffer index)
        Creating new character for a font
        Parameters:
        offsetx - X offset of the character relative to the cursor
        offsety - Y offset of the character relative to the cursor
        advancex - Moving of the cursor after this char
        index - Indexbuffer of the character texture
    • Method Detail

      • getAdvancex

        public float getAdvancex()
        Returns:
        Moving of the cursor after this char
      • getIndex

        public IndexBuffer getIndex()
        Returns:
        Indexbuffer of the character texture
      • getOffsetx

        public float getOffsetx()
        Returns:
        Y offset of the character relative to the cursor
      • getOffsety

        public float getOffsety()
        Returns:
        X offset of the character relative to the cursor