 |
Graphics
The global Graphics object provides access to the default video card on the system.
Constant Methods
- boolean get_mode ( DisplayMode mode )
Gets the current display mode by populating the DisplayMode helper object. Returns false if the system fails to get the current display mode
Non-Constant Methods
- boolean set_mode ( DisplayMode mode )
boolean set_mode ( number width, number height, number depth, boolean windowed )
boolean set_mode ( number width, number height, number depth, boolean windowed, number refresh )
Sets the current display mode to a given width, height in pixels, color depth in bits per pixel and refresh rate in Hertz. Returns false if the system fails to enter the specified display mode
- boolean toggle_mode ( )
Toggles the current display mode between fullscreen and windowed. Returns false if the system fails to enter the specified display mode
DisplayMode
The DisplayMode helper object contains context information about a graphics display mode.
It can be populated using the "get_mode" function
Properties
- number width
- number height
- number depth
- boolean windowed
|