test/snake/snake.c

changeset 140
d190fe5315bd
parent 123
737a676a46a6
child 141
cd82643bb6d9
--- a/test/snake/snake.c	Sun Jun 08 14:58:19 2025 +0200
+++ b/test/snake/snake.c	Mon Jun 09 13:18:41 2025 +0200
@@ -206,6 +206,13 @@
             asc_context_quit();
         }
 
+        // debug-key for clearing the shader registry
+        if (asc_key_pressed(S)) {
+            // TODO: implement edge-triggered key press handling
+            asc_shader_clear_registry();
+            asc_dprintf("Shader cache cleared.");
+        }
+
         // quit application on ESC key press
         if (asc_key_pressed(ESCAPE)) {
             asc_context_quit();

mercurial