comparison examples/E01_hello_triangle.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 512d33d314c4
comparison
equal deleted inserted replaced
534:e1b60a09d7dc 535:21c276c0a968
10 position: PositionAttribute[Vec2] 10 position: PositionAttribute[Vec2]
11 color: ColorAttribute[Vec3] 11 color: ColorAttribute[Vec3]
12 12
13 var pipeline: RenderPipeline[VertexDataA, void] 13 var pipeline: RenderPipeline[VertexDataA, void]
14 14
15 proc globalUpdate(engine: var Engine, dt: float32) = 15 proc globalUpdate(engine: var Engine, t, dt: float32) =
16 discard 16 discard
17 17
18 # vertex data (types must match the above VertexAttributes) 18 # vertex data (types must match the above VertexAttributes)
19 const 19 const
20 triangle_pos = @[ 20 triangle_pos = @[