204 asc_active_window->window); |
204 asc_active_window->window); |
205 asc_clear_error(); |
205 asc_clear_error(); |
206 asc_context_quit(); |
206 asc_context_quit(); |
207 } |
207 } |
208 |
208 |
|
209 // debug-key for clearing the shader registry |
|
210 if (asc_key_pressed(S)) { |
|
211 // TODO: implement edge-triggered key press handling |
|
212 asc_shader_clear_registry(); |
|
213 asc_dprintf("Shader cache cleared."); |
|
214 } |
|
215 |
209 // quit application on ESC key press |
216 // quit application on ESC key press |
210 if (asc_key_pressed(ESCAPE)) { |
217 if (asc_key_pressed(ESCAPE)) { |
211 asc_context_quit(); |
218 asc_context_quit(); |
212 } |
219 } |
213 } while (asc_loop_next()); |
220 } while (asc_loop_next()); |