diff examples/E04_input.nim @ 74:779607656b12

fix: stuff, add working pong
author Sam <sam@basx.dev>
date Mon, 06 Feb 2023 23:32:59 +0700
parents 53ccd6090116
children 8ce634aa6ea6
line wrap: on
line diff
--- a/examples/E04_input.nim	Sun Feb 05 21:57:59 2023 +0700
+++ b/examples/E04_input.nim	Mon Feb 06 23:32:59 2023 +0700
@@ -110,7 +110,7 @@
   firstRow = false
 
 
-proc globalUpdate(engine: var Engine, dt: float32) =
+proc globalUpdate(engine: var Engine, t, dt: float32) =
   uniforms.projection.value = ortho[float32](
     0'f32, float32(engine.vulkan.frameSize.x),
     0'f32, float32(engine.vulkan.frameSize.y),