![]() |
Lysa
0.0
Lysa 3D Engine
|
A platform window with an associated GPU render target.
Lua full name: lysa.RenderingWindow
Public Member Functions | |
| nil | close () |
| Closes and destroys the window. More... | |
| Rect | get_rect () |
| Returns the window position and size as a Rect. More... | |
| nil | set_title (title: string) |
| Sets the window title bar text. More... | |
| nil | set_mouse_mode (mode: integer) |
| Sets the mouse capture/visibility mode (see lysa.MouseMode). More... | |
| nil | set_mouse_cursor (cursor: integer) |
| Sets the mouse cursor shape (see lysa.MouseCursor). More... | |
| nil | reset_mouse_position () |
| Resets the mouse position to the center of the window. More... | |
| boolean | is_mouse_hidden () |
| Returns true if the mouse cursor is hidden. More... | |
| float2 | get_mouse_position () |
| Returns the current mouse position in window coordinates. More... | |
| nil | set_mouse_position (pos: float2) |
| Sets the mouse position in window coordinates. More... | |
| table<integer,lysa.Rect> | get_full_screen_modes ()static |
| Returns a table of available fullscreen resolutions. More... | |
Properties | |
| integer | id |
| Constructor: RenderingWindow() RenderingWindow(cfg) | |
| boolean | paused |
| Whether the window's render loop is paused. | |
| boolean | minimized |
| True if the window is minimized. (read-only) | |
| boolean | mouse_hidden |
| True if the mouse cursor is hidden. (read-only) | |
|
Closes and destroys the window.
|
Sets the window title bar text.
| title | string |
|
Sets the mouse capture/visibility mode (see lysa.MouseMode).
| mode | integer |
|
Sets the mouse cursor shape (see lysa.MouseCursor).
| cursor | integer |
|
Resets the mouse position to the center of the window.
|
Returns true if the mouse cursor is hidden.
|
Returns the current mouse position in window coordinates.
|
Sets the mouse position in window coordinates.
| pos | float2 |
|
static |
Returns a table of available fullscreen resolutions.
| integer id |
Constructor: RenderingWindow() RenderingWindow(cfg)
| boolean paused |
Whether the window's render loop is paused.
| boolean minimized |
True if the window is minimized. (read-only)
| boolean mouse_hidden |
True if the mouse cursor is hidden. (read-only)