diff options
Diffstat (limited to 'gfx-app/include')
-rw-r--r-- | gfx-app/include/gfx/gfx_app.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx-app/include/gfx/gfx_app.h b/gfx-app/include/gfx/gfx_app.h index 4744992..0033bde 100644 --- a/gfx-app/include/gfx/gfx_app.h +++ b/gfx-app/include/gfx/gfx_app.h | |||
@@ -9,6 +9,7 @@ typedef struct GfxAppDesc { | |||
9 | int height; // Window height. | 9 | int height; // Window height. |
10 | int max_fps; // Desired maximum display framerate. 0 to disable. | 10 | int max_fps; // Desired maximum display framerate. 0 to disable. |
11 | double update_delta_time; // Desired delta time between frame updates. | 11 | double update_delta_time; // Desired delta time between frame updates. |
12 | const char* title; // Window title. | ||
12 | } GfxAppDesc; | 13 | } GfxAppDesc; |
13 | 14 | ||
14 | typedef struct GfxAppCallbacks { | 15 | typedef struct GfxAppCallbacks { |
@@ -21,3 +22,6 @@ typedef struct GfxAppCallbacks { | |||
21 | 22 | ||
22 | /// Create a window with an OpenGL context and run the main loop. | 23 | /// Create a window with an OpenGL context and run the main loop. |
23 | bool gfx_app_run(const GfxAppDesc*, const GfxAppCallbacks*); | 24 | bool gfx_app_run(const GfxAppDesc*, const GfxAppCallbacks*); |
25 | |||
26 | /// Get the mouse coordinates relative to the app's window. | ||
27 | void gfx_app_get_mouse_position(double* x, double* y); | ||