Mercurial > games > semicongine
comparison tests/test_collision.nim @ 792:d65b62812d34
did: undid using meshes as values, ref is much better, fix a few things, fix a few huge performance issues
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 03 Sep 2023 17:34:29 +0700 |
parents | a979e5c581de |
children | b83b3a1ccb05 |
comparison
equal
deleted
inserted
replaced
791:43432dad4797 | 792:d65b62812d34 |
---|---|
3 import semicongine | 3 import semicongine |
4 | 4 |
5 proc main() = | 5 proc main() = |
6 var scene = Scene(name: "main") | 6 var scene = Scene(name: "main") |
7 | 7 |
8 scene.meshes.add rect(color="f00f") | 8 scene.add rect(color="f00f") |
9 scene.meshes.add rect() | 9 scene.add rect() |
10 scene.meshes.add circle(color="0f0f") | 10 scene.add circle(color="0f0f") |
11 scene.meshes[1].transform = scale(0.8, 0.8) | 11 scene.meshes[1].transform = scale(0.8, 0.8) |
12 scene.meshes[2].transform = scale(0.1, 0.1) | 12 scene.meshes[2].transform = scale(0.1, 0.1) |
13 scene.addShaderGlobal("perspective", Unit4F32) | 13 scene.addShaderGlobal("perspective", Unit4F32) |
14 | 14 |
15 const | 15 const |