diff tests/test_collision.nim @ 331:05fb85ba97dd

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 69e18f69713b
children b83b3a1ccb05
line wrap: on
line diff
--- a/tests/test_collision.nim	Sat Sep 02 23:51:02 2023 +0700
+++ b/tests/test_collision.nim	Sun Sep 03 17:34:29 2023 +0700
@@ -5,9 +5,9 @@
 proc main() =
   var scene = Scene(name: "main")
 
-  scene.meshes.add rect(color="f00f")
-  scene.meshes.add rect()
-  scene.meshes.add circle(color="0f0f")
+  scene.add rect(color="f00f")
+  scene.add rect()
+  scene.add circle(color="0f0f")
   scene.meshes[1].transform = scale(0.8, 0.8)
   scene.meshes[2].transform = scale(0.1, 0.1)
   scene.addShaderGlobal("perspective", Unit4F32)