Mercurial > games > semicongine
diff tests/test_mesh.nim @ 302:da0bd61abe91
did: change API for ECS
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 27 Jun 2023 00:17:40 +0700 |
parents | b5fb27b0f7a4 |
children | b145a05c2459 |
line wrap: on
line diff
--- a/tests/test_mesh.nim Tue Jun 27 00:01:36 2023 +0700 +++ b/tests/test_mesh.nim Tue Jun 27 00:17:40 2023 +0700 @@ -1,8 +1,8 @@ import semicongine proc main() = - var ent1 = newEntity("hoho", rect()) - var ent2 = newEntity("hehe", ent1) + var ent1 = newEntity("hoho", {"mesh": Component(rect())}) + var ent2 = newEntity("hehe", [], ent1) var myScene = newScene("hi", ent2) myScene.root.transform = translate3d(0.2'f32, 0'f32, 0'f32) myScene.root.children[0].transform = translate3d(0'f32, 0.2'f32, 0'f32)