๐๏ธRenderer
Functions for drawing. Won't work outside 'OnRender' function.
Static Functions:
Renderer.GetScreenSize(): Vector2
Returns Vector2 object with screen size.
Renderer.SetRounding(value: integer, tl: boolean, tr: boolean, bl: boolean, br: boolean)
Sets rounding flags for current frame.
Renderer.SetThickness(value: integer)
Sets thickness value for current frame.
Renderer.SetTextAlign(value: integer)
Align type:
0 - Left
1 - Center
2 - Right
Sets text align for current frame.
Renderer.AddLine(from: Vector2, to: Vector2, color: Color)
Screen coordinate of point A
Screen coordinate of point B
Draws a line from point A to point B.
Renderer.AddRect(from: Vector2, to: Vector2, color: Color)
Screen coordinate of point A
Screen coordinate of point B
Draws a rect from point A to point B.
Renderer.AddRectFilled(from: Vector2, to: Vector2, color: Color)
Screen coordinate of point A
Screen coordinate of point B
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.