TextSprite
Rendered TTF text
Operations
IsOk
Initialization status flag
method : public : IsOk() ~ Bool
Return
Type | Description |
---|---|
Bool | true if initialized, false otherwise |
Render
Renders an image
method : public : Render(x:Int, y:Int) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
x | Int | x-position |
y | Int | y-position |
RenderedText
Renders the set text
method : public : RenderedText(text:String) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
text | String | text to render |
RenderedText
Renders the set text
method : public : RenderedText(text:String, color:Color) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
text | String | text to render |
color | Color | color of text |
SetColor
Sets the text color
method : public : SetColor(color:Color) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
color | Color | text color |
SetFont
Sets the text font
method : public : SetFont(font:Font) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
font | Font | TTF |