Mercurial > games > semicongine
comparison examples/squares.nim @ 499:3f1111f3b9f8
did: tons of stuff, input, refactoring, fix some errors, some template improvment, sorry for super-commit
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 18 Jan 2023 09:52:03 +0700 |
parents | 0c18638c7217 |
children | 0cb294c5d2fd |
comparison
equal
deleted
inserted
replaced
498:2fa8e418deae | 499:3f1111f3b9f8 |
---|---|
31 for buffer in pipeline.uniformBuffers: | 31 for buffer in pipeline.uniformBuffers: |
32 buffer.updateData(uniformdata) | 32 buffer.updateData(uniformdata) |
33 | 33 |
34 when isMainModule: | 34 when isMainModule: |
35 randomize() | 35 randomize() |
36 var myengine = igniteEngine("A lot of triangles") | 36 var myengine = igniteEngine("Squares") |
37 const | 37 const |
38 COLUMNS = 10 | 38 COLUMNS = 10 |
39 ROWS = 10 | 39 ROWS = 10 |
40 WIDTH = 2'f32 / COLUMNS | 40 WIDTH = 2'f32 / COLUMNS |
41 HEIGHT = 2'f32 / ROWS | 41 HEIGHT = 2'f32 / ROWS |