gamnit :: BMFontChar
BMFont
gamnit :: BMFontChar :: defaultinit
gamnit :: BMFontChar :: page=
Full texture contaning this character and othersgamnit :: BMFontChar :: subtexture
Subtexture with this character image onlygamnit :: BMFontChar :: subtexture=
Subtexture with this character image onlygamnit :: BMFontChar :: xadvance=
Cursor advance after drawing this charactergamnit $ BMFontChar :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
gamnit :: BMFontChar :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).gamnit :: BMFontChar :: page=
Full texture contaning this character and othersgamnit :: BMFontChar :: subtexture
Subtexture with this character image onlygamnit :: BMFontChar :: subtexture=
Subtexture with this character image onlygamnit :: BMFontChar :: xadvance=
Cursor advance after drawing this character
# Description of a character in a `BMFont`
class BMFontChar
# Subtexture left coordinate
var x: Float
# Subtexture top coordinate
var y: Float
# Subtexture width
var width: Float
# Subtexture height
var height: Float
# Drawing offset on X
var xoffset: Float
# Drawing offset on Y
var yoffset: Float
# Cursor advance after drawing this character
var xadvance: Float
# Full texture contaning this character and others
var page: RootTexture
# TODO Channel where the image is found
#var chnl: Int
# Subtexture with this character image only
var subtexture: Texture = page.subtexture(x, y, width, height) is lazy, writable
# Scale to apply to this char only
var scale = 1.0 is writable
end
lib/gamnit/bmfont.nit:117,1--152,3