diff options
Diffstat (limited to 'src/fw/fw.odin')
| -rw-r--r-- | src/fw/fw.odin | 3 |
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) |
