This commit is contained in:
agra
2026-02-14 21:27:51 +02:00
parent 0e777e9d2e
commit e7d2abdf0c
5 changed files with 338 additions and 78 deletions

View File

@@ -277,12 +277,15 @@ GLSL;
if e.key == {
case .escape: running = false;
}
}
case .window_exposed: (e) {
}
case .key_down: (e) {
k : u32 = xx e.key;
print("ts={} wid={} sc={} key={}\n",
e.timestamp, e.window_id, e.scancode, k);
}
}
}
}
@@ -290,7 +293,7 @@ GLSL;
ticks := SDL_GetTicks();
ms : f32 = xx ticks;
angle := ms * 0.001;
// Build matrices
proj : Matrix44 = ---;
mat4_perspective(proj, PI / 4.0, 800.0 / 600.0, 0.1, 100.0);