get_screen_size(): vec2_t
Returns the width and height of the game's window
var screen_size = renderer.get_screen_size();
create_font( identifier, font_name, size, weight, flags )
Creates a new font object
A unique identifier for your font
var example_font = renderer.create_font( "my_awesome_font", "Tahoma", 12, 0, font_flags.FONTFLAG_NONE );
text( font, x, y, text, flags, color )
Draws a string at the two given points
The font you want the text to be drawn in
The position on the x axis
The position on the y axis
The text you want to draw
The alignment flags you want to use
The color you want the text to be
get_text_size( font, text ): vec2_t
Returns the width and height of the given string
The font you want the text to eventually be drawn in
The text you want to check the size of
line( x0, y0, x1, y1, color )
Draws a line in the given color between the two given points.
Starting position on the x axis
Starting position on the y axis
Ending position on the x axis
Ending position on the y axis
The color you want the line to be
rect( x, y, w, y, color )
Draws a rectangle (not filled) between the two given points.
Starting position on the x axis
Starting position on the y axis
How wide the rectangle should be
How tall the rectangle should be
The color you want the rectangle to be
rect_filled( x, y, w, h, color )
Draws a rectangle (filled) between the two given points.
Starting position on the x axis
Starting position on the y axis
How wide the rectangle should be
How tall the rectangle should be
The color you want the rectangle to be
rect_filled_fade( x, y, w, h, color, a0, a1 )
Draws a rectangle (filled) between the two given points that fades from the first alpha, to the second.
Starting position on the x axis
Starting position on the y axis
How wide the rectangle should be
How tall the rectangle should be
The color you want the rectangle to be
rect_filled_gradient( x, y, w, h, color0, color1 )
Draws a rectangle (filled) between the two given points that fades from the first color to the second.
Starting position on the x axis
Starting position on the y axis
How wide the rectangle should be
How tall the rectangle should be
circle( x, y, radius, segments, color )
Draws a circle (not filled) at the two given points.
The position on the x axis
The position on the y axis
How big the circle should be
How many segments should be used to the create the circle
The color you want the circle to be
circle_filled( x, y, radius, segments, color )
Draws a circle (filled) at the two given points
The position on the x axis
The position on the y axis
How big the circle should be
How many segments should be used to the create the circle
The color you want the circle to be