Mercurial > games > semicongine
diff tests/test_materials.nim @ 763:a4c757f5d17f
did: change API for ECS
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 27 Jun 2023 00:17:40 +0700 |
parents | 07c755e65a4a |
children | 4921ec86dcb4 |
line wrap: on
line diff
--- a/tests/test_materials.nim Tue Jun 27 00:01:36 2023 +0700 +++ b/tests/test_materials.nim Tue Jun 27 00:17:40 2023 +0700 @@ -4,7 +4,7 @@ import semicongine proc main() = - var scene = newScene("main", root=newEntity("rect", rect())) + var scene = newScene("main", root=newEntity("rect", {"mesh": Component(rect())})) let (RT, WT, PT) = (hexToColorAlpha("A51931").asPixel, hexToColorAlpha("F4F5F8").asPixel, hexToColorAlpha("2D2A4A").asPixel) let # image from memory