Package engine.fontMeshCreator
Class Character
java.lang.Object
engine.fontMeshCreator.Character
Simple data structure class holding information about a certain glyph in the
font texture atlas. All sizes are for a font-size of 1.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Character
(int id, double xTextureCoord, double yTextureCoord, double xTexSize, double yTexSize, double xOffset, double yOffset, double sizeX, double sizeY, double xAdvance) -
Method Summary
-
Constructor Details
-
Character
protected Character(int id, double xTextureCoord, double yTextureCoord, double xTexSize, double yTexSize, double xOffset, double yOffset, double sizeX, double sizeY, double xAdvance) - Parameters:
id
- - the ASCII value of the character.xTextureCoord
- - the x texture coordinate for the top left corner of the character in the texture atlas.yTextureCoord
- - the y texture coordinate for the top left corner of the character in the texture atlas.xTexSize
- - the width of the character in the texture atlas.yTexSize
- - the height of the character in the texture atlas.xOffset
- - the x distance from the curser to the left edge of the character's quad.yOffset
- - the y distance from the curser to the top edge of the character's quad.sizeX
- - the width of the character's quad in screen space.sizeY
- - the height of the character's quad in screen space.xAdvance
- - how far in pixels the cursor should advance after adding this character.
-
-
Method Details
-
getId
protected int getId() -
getxTextureCoord
protected double getxTextureCoord() -
getyTextureCoord
protected double getyTextureCoord() -
getXMaxTextureCoord
protected double getXMaxTextureCoord() -
getYMaxTextureCoord
protected double getYMaxTextureCoord() -
getxOffset
protected double getxOffset() -
getyOffset
protected double getyOffset() -
getSizeX
protected double getSizeX() -
getSizeY
protected double getSizeY() -
getxAdvance
protected double getxAdvance()
-