comparison examples/E02_squares.nim @ 535:21c276c0a968

fix: stuff, add working pong
author Sam <sam@basx.dev>
date Mon, 06 Feb 2023 23:32:45 +0700
parents eb92723db7b2
children fdae5f50fa00
comparison
equal deleted inserted replaced
534:e1b60a09d7dc 535:21c276c0a968
15 15
16 var 16 var
17 pipeline: RenderPipeline[VertexDataA, Uniforms] 17 pipeline: RenderPipeline[VertexDataA, Uniforms]
18 uniformdata = Uniforms(t: Descriptor[float32](value: 0'f32)) 18 uniformdata = Uniforms(t: Descriptor[float32](value: 0'f32))
19 19
20 proc globalUpdate(engine: var Engine, dt: float32) = 20 proc globalUpdate(engine: var Engine, t, dt: float32) =
21 uniformdata.t.value += dt 21 uniformdata.t.value += dt
22 engine.vulkan.device.updateUniformData(pipeline, uniformdata) 22 engine.vulkan.device.updateUniformData(pipeline, uniformdata)
23 23
24 when isMainModule: 24 when isMainModule:
25 randomize() 25 randomize()