diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/include/dxwindow.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/include/dxwindow.h b/app/include/dxwindow.h index 7e5a373..14caa36 100644 --- a/app/include/dxwindow.h +++ b/app/include/dxwindow.h | |||
| @@ -21,8 +21,17 @@ void window_global_quit(); | |||
| 21 | /// Return the last Window error. | 21 | /// Return the last Window error. |
| 22 | const char* window_get_error(); | 22 | const char* window_get_error(); |
| 23 | 23 | ||
| 24 | /// Initialize the window. | ||
| 24 | Window* window_init(int width, int height, const char* title); | 25 | Window* window_init(int width, int height, const char* title); |
| 26 | |||
| 27 | /// Destroy the window. | ||
| 25 | void window_destroy(Window**); | 28 | void window_destroy(Window**); |
| 29 | |||
| 30 | /// Return the Windows handle. | ||
| 26 | HWND window_handle(Window*); | 31 | HWND window_handle(Window*); |
| 32 | |||
| 33 | /// Update the window, poll for events. | ||
| 27 | void window_update(Window*); | 34 | void window_update(Window*); |
| 35 | |||
| 36 | /// Return whether the user has requested that the window should be closed. | ||
| 28 | bool window_should_close(const Window*); | 37 | bool window_should_close(const Window*); |
