aboutsummaryrefslogtreecommitdiff
path: root/src/fw/fw.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-02-14 18:02:47 -0500
committeriamcheeseman <[hidden email]>2026-02-14 18:02:47 -0500
commit93c27830060788dea1c364465d29e44d05a3064e (patch)
tree4a8e1f6628026a4fb82c8a1c6084f2e35750cc28 /src/fw/fw.odin
parent1ff729f696c895f81f0cf0d1b8a2cca1d6e43eb8 (diff)
Only process keys that are bound to an action
Diffstat (limited to 'src/fw/fw.odin')
-rw-r--r--src/fw/fw.odin3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fw/fw.odin b/src/fw/fw.odin
index 556817b..9ab1918 100644
--- a/src/fw/fw.odin
+++ b/src/fw/fw.odin
@@ -28,6 +28,7 @@ Config :: struct {
@(private) last_frame: f64
@(private) dt: f64
+@(require_results)
rgba8 :: proc(r: u8, g: u8, b: u8, a: u8 = 255) -> Color {
return Color{
f32(r) / 255,
@@ -71,6 +72,7 @@ deinit :: proc() {
glfw.Terminate()
}
+@(require_results)
next_frame :: proc() -> bool {
// End the previous frame
if can_flush() {
@@ -90,7 +92,6 @@ next_frame :: proc() -> bool {
glfw.SwapBuffers(window)
glfw.PollEvents()
- _update_input()
// log.debugf("Draw calls: %v", renderer.draw_calls_count)