Renderer

DrawText

Renders a string within bounds of game screen.

Renderer.DrawText('Verdana', 'Hello!', Vector2D(100, 100), false, true, Color(255, 255, 255, 255))
Name
Type

Font

String

Text

String

Position

Centered

Boolean

Outlined

Boolean

Color


GetTextSize

Gets size of text

Renderer.GetTextSize('Verdana', 'Hello!')
Name
Type

Font

String

Text

String


LoadFontFromFile

Initializes a downloaded font.

Name
Type

Instance

String

Font

String

Size

Boolean

Anti-aliased

Integer

circle-info

Anti-aliasing is optional, will be set to true if no value is set


DrawLine

Renders a line within bounds of game screen.

Name
Type

Color

Thickness

Integer


DrawGradientLine

Renders a gradient line within bounds of game screen.

Name
Type

Color

Color 2


PushScissorRect

Name
Type

Position


PopScissorRect


DrawCircleFilled

Renders a filled circle on game screen.

Name
Type

Position

Color

Radius

Integer


DrawCircleGradient3D

Renders a circle with a gradient on game screen.

Name
Type

Position

Inner Color

Outer Color

Radius

Integer


DrawCircle3D

Renders a circle on game screen.

Name
Type

Position

Color

Radius

Integer


DrawRect

Renders a rectangle on game screen.

Name
Type

Color

Rounding

Integer

circle-info

Rounding is an optional parameter, if left without a value, it will be set to 0


DrawRectFilled

Renders a filled rectangle on game screen.

Name
Type

Color

Rounding

Integer

circle-info

Rounding is an optional parameter, if left without a value, it will be set to 0


DrawGradientRectFilled

Renders a filled rectangle on game screen.

Name
Type

Color

Color 2

Horizontal

Boolean


GetScreenSize

Returns dimensions of screen.


CreateTextureFromBase64

Creates an image from base64 string.

Name
Type

Texture Data

String

Initial Size


CreateTextureFromBytes

Creates an image from byte array.

Name
Type

Texture Data

Byte Array

Initial Size


DrawTexture

Renders texture on screen.

Name
Type

Texture

Texture

Position


DrawIcon

Renders icon on screen.

Name
Type

Icon

String

Position

Size

Integer

Centered

Boolean

Outlined

Boolean

Color


DrawArc

Renders an arc on screen.

Name
Type

Position

Radius

Float

Start Angle

Float

End Angle

Float

Color

Thickness

Float

Last updated