renderer

Example:

renderer.logo(0, 0, engine.screen_size().x, engine.screen_size().y, color.new(255, 255, 255, 150))

Functions:

create_font

Returns a font based on name, size, and boldness.

ArgumentTypeRequired

name

string

+

size

number

+

bold

bool

+

create_texture

Returns a texture based on filename.

ArgumentTypeRequired

filename

string

+

set_clip

Clips rendering to the given region.

ArgumentTypeRequired

x

number

+

y

number

+

w

number

+

h

number

+

remove_clip

Removes any set clip.

image

ArgumentTypeRequired

texture

texture

+

x

number

+

y

number

+

w

number

+

h

number

+

rotation

number

+

color

+

line

ArgumentTypeRequired

x1

number

+

y1

number

+

x2

number

+

y2

number

+

color

+

circle

ArgumentTypeRequired

x

number

+

y

number

+

radius

number

+

color

+

filled_circle

ArgumentTypeRequired

x

number

+

y

number

+

radius

number

+

color

+

triangle

ArgumentTypeRequired

vec1

+

vec2

+

vec3

+

color

+

filled_triangle

ArgumentTypeRequired

vec1

+

vec2

+

vec3

+

color

+

rect

ArgumentTypeRequired

x

number

+

y

number

+

w

number

+

h

number

+

color

+

filled_rect

ArgumentTypeRequired

x

number

+

y

number

+

w

number

+

h

number

+

color

+

gradient_rect

ArgumentTypeRequired

x

number

+

y

number

+

w

number

+

h

number

+

vertical

bool

+

color1

+

color2

+

text

ArgumentTypeRequired

x

number

+

y

number

+

text

string

+

color

+

font

font

-

text_centered

ArgumentTypeRequired

x

number

+

y

number

+

text

string

+

centered x

bool

+

centered y

bool

+

color

+

font

font

-

get_text_size

ArgumentTypeRequired

text

string

+

font

font

-

ArgumentTypeRequired

x

number

+

y

number

+

w

number

+

h

number

+

color

+

lock_cursor

Locks the cursor from interactions.

unlock_cursor

Unlocks the cursor from interactions.

Last updated