Package de.coreengine.rendering.model
Class Character
- java.lang.Object
-
- de.coreengine.rendering.model.Character
-
public class Character extends Object
Class that represent a character of a font- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description Character(float offsetx, float offsety, float advancex, IndexBuffer index)
Creating new character for a font
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAdvancex()
IndexBuffer
getIndex()
float
getOffsetx()
float
getOffsety()
-
-
-
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 cursoroffsety
- Y offset of the character relative to the cursoradvancex
- Moving of the cursor after this charindex
- 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
-
-