36:e26b4ac1661c | 37:8a8cc6725b48 |
---|---|
53 Uint32 id; | 53 Uint32 id; |
54 SDL_Window* window; | 54 SDL_Window* window; |
55 SDL_GLContext glctx; | 55 SDL_GLContext glctx; |
56 AscPrimitives primitives; | 56 AscPrimitives primitives; |
57 asc_vec2i dimensions; | 57 asc_vec2i dimensions; |
58 asc_mat4f projection; | 58 bool resized; |
59 AscScene ui; | 59 AscScene ui; |
60 } AscWindow; | 60 } AscWindow; |
61 | 61 |
62 #define asc_window_active_ui &(asc_context.active_window->ui) | 62 #define asc_window_active asc_context.active_window |
63 | 63 |
64 /** | 64 /** |
65 * Initializes the settings structure with default values. | 65 * Initializes the settings structure with default values. |
66 * | 66 * |
67 * @param settings an uninitialized settings object | 67 * @param settings an uninitialized settings object |
100 * This function is automatically invoked for all initialized windows | 100 * This function is automatically invoked for all initialized windows |
101 * by asc_loop_next(). You usually do not need to call this function manually. | 101 * by asc_loop_next(). You usually do not need to call this function manually. |
102 * | 102 * |
103 * @param window the window | 103 * @param window the window |
104 */ | 104 */ |
105 void asc_window_sync(AscWindow const *window); | 105 void asc_window_sync(AscWindow *window); |
106 | 106 |
107 /** | 107 /** |
108 * Switches the active window. | 108 * Switches the active window. |
109 * | 109 * |
110 * In particular that makes the corresponding OpenGL context "current". | 110 * In particular that makes the corresponding OpenGL context "current". |