The "window" is where GameMaker: Studio displays your game, and, depending on the target device, there are different things that can be done with it, like set it to fullscreen or not (for example). Views, however, govern what you see within that window, and so have another series of functions dedicated to them. The following two sections deal with these two aspects of displaying your game:
However, sometimes it's not enough to get information about the game window and views only, and you really need to know things about the display itself. The following function all give you details about the size and orientation of the display, details about the GUI layer, and information on the mouse:
- display_reset
- display_get_height
- display_get_width
- display_get_orientation
- display_get_dpi_x
- display_get_dpi_y
- display_set_gui_size
- display_set_gui_maximise
- display_get_gui_width
- display_get_gui_height
- display_set_ui_visibility
- display_set_windows_vertex_buffer_method
- display_set_windows_alternate_sync
- display_get_windows_vertex_buffer_method
- display_get_windows_alternate_sync
- display_mouse_get_x
- display_mouse_get_y
- display_mouse_set
There are also a couple of special functions that can be used to save the display, or part of it, to an image file:
NOTE: On Windows SurfaceRT devices, there is a canvas
limit of 2048x2048, which means the drawing canvas cannot go above
those dimensions (neither with views, nor by setting the game
window directly) otherwise your game graphics will be corrupted or
degraded.