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