Mercurial > games > semicongine
comparison examples/squares.nim @ 38:c3c963e7c1a6
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 | 94c38e4b5782 |
children | 0cb294c5d2fd |
comparison
equal
deleted
inserted
replaced
37:6859bcfabc62 | 38:c3c963e7c1a6 |
---|---|
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 |