diff tests/test_collision.nim @ 1138:02e1d2658ff5

did: more renaming
author sam <sam@basx.dev>
date Tue, 04 Jun 2024 22:08:48 +0700
parents a4aa9f374d44
children 114f395b9144
line wrap: on
line diff
--- a/tests/test_collision.nim	Tue Jun 04 20:51:22 2024 +0700
+++ b/tests/test_collision.nim	Tue Jun 04 22:08:48 2024 +0700
@@ -28,10 +28,10 @@
       fragmentCode = """fragcolor = colorout;""",
     )
 
-  var engine = initEngine("Test collisions")
+  var engine = InitEngine("Test collisions")
 
-  engine.initRenderer({VERTEX_COLORED_MATERIAL: shaderConfiguration})
-  engine.loadScene(scene)
+  engine.InitRenderer({VERTEX_COLORED_MATERIAL: shaderConfiguration})
+  engine.LoadScene(scene)
 
   while engine.UpdateInputs() and not KeyIsDown(Escape):
     if WindowWasResized():
@@ -51,8 +51,8 @@
     let hitbox = Collider(theType: Box, transform: scene.meshes[0].transform * Translate(-0.5, -0.5))
     let hitsphere = Collider(theType: Sphere, transform: scene.meshes[2].transform, radius: 0.5)
     echo intersects(hitbox, hitsphere)
-    engine.renderScene(scene)
-  engine.destroy()
+    engine.RenderScene(scene)
+  engine.Destroy()
 
 
 when isMainModule: