Module screen

Functions to manipulate screen

Functions

isclosing () Checks if the program will be closed.
getwidth () Gets the width of the screen
getheight () Gets the height of the screen
getfps () Gets the frames per second
setfps () Sets the frames per second
getdeltatime () Gets the time in seconds since the last screen update
clear () Clears the buffer using the default background colour and prepares the library to draw
flip () Sets the library to stop drawing and show the buffer onto the screen.


Functions

isclosing ()
Checks if the program will be closed.

Returns:

    true if the program will be close, false otherwise.
getwidth ()
Gets the width of the screen

Returns:

    int current screen width
getheight ()
Gets the height of the screen

Returns:

    int current screen height
getfps ()
Gets the frames per second
setfps ()
Sets the frames per second
getdeltatime ()
Gets the time in seconds since the last screen update
clear ()
Clears the buffer using the default background colour and prepares the library to draw
flip ()
Sets the library to stop drawing and show the buffer onto the screen.
generated by LDoc 1.4.6 Last updated 2022-08-01 11:21:18