đī¸Renderer
Functions for drawing. Won't work outside 'OnRender' function.
Last updated
Functions for drawing. Won't work outside 'OnRender' function.
Last updated
Renderer.GetScreenSize()
: Vector2
Returns Vector2 object with screen size.
Renderer.SetRounding(value: integer, tl: boolean, tr: boolean, bl: boolean, br: boolean)
Argument | Type | Description |
---|---|---|
Sets rounding flags for current frame.
Renderer.SetThickness(value: integer)
Argument | Type | Description |
---|---|---|
Sets thickness value for current frame.
Renderer.SetTextAlign(value: integer)
Sets text align for current frame.
Renderer.AddLine(from: Vector2, to: Vector2, color: Color)
Draws a line from point A to point B.
Renderer.AddRect(from: Vector2, to: Vector2, color: Color)
Draws a rect from point A to point B.
Renderer.AddRectFilled(from: Vector2, to: Vector2, color: Color)
Draws a filled rect from point A to point B.
Renderer.AddImage(image: Image, position: Vector2, size: Vector2, color: Color)
Draws a image.
Renderer.AddText(font: Font, position: Vector2, color: Color, text: string)
Draws a text.
Renderer.AddTextShadow(font: Font, position: Vector2, color: Color, text: string)
Draws a text with shadow.
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
value
integer
Rounding value
tl
boolean
Top-Left rounding
tr
boolean
Top-Right rounding
bl
boolean
Bottom-Left rounding
br
boolean
Bottom-Right rounding
value
integer
Thickness value
value
integer
Align type: 0 - Left 1 - Center 2 - Right
from
Vector2
Screen coordinate of point A
to
Vector2
Screen coordinate of point B
color
Color
Color object
from
Vector2
Screen coordinate of point A
to
Vector2
Screen coordinate of point B
color
Color
Color object
from
Vector2
Screen coordinate of point A
to
Vector2
Screen coordinate of point B
color
Color
Color object
image
Image
Image object
position
Vector2
Screen coordinate
size
Vector2 (optional)
Image Size
color
Color (optional)
Color object
font
Font
Font object
position
Vector2
Screen coordinate
color
Color
Color object
text
string
Text that will be drawn
font
Font
Font object
position
Vector2
Screen coordinate
color
Color
Color object
text
string
Text that will be drawn