comparison examples/E01_hello_triangle.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 9f2c178beb60
comparison
equal deleted inserted replaced
73:17c12b79faaa 74:779607656b12
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 = @[