diff examples/E02_squares.nim @ 74:779607656b12

fix: stuff, add working pong
author Sam <sam@basx.dev>
date Mon, 06 Feb 2023 23:32:59 +0700
parents bdef52f3bc0d
children fc5db4f1f94e
line wrap: on
line diff
--- a/examples/E02_squares.nim	Sun Feb 05 21:57:59 2023 +0700
+++ b/examples/E02_squares.nim	Mon Feb 06 23:32:59 2023 +0700
@@ -17,7 +17,7 @@
   pipeline: RenderPipeline[VertexDataA, Uniforms]
   uniformdata = Uniforms(t: Descriptor[float32](value: 0'f32))
 
-proc globalUpdate(engine: var Engine, dt: float32) =
+proc globalUpdate(engine: var Engine, t, dt: float32) =
   uniformdata.t.value += dt
   engine.vulkan.device.updateUniformData(pipeline, uniformdata)