diff tests/test_mesh.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_mesh.nim	Tue Jun 04 20:51:22 2024 +0700
+++ b/tests/test_mesh.nim	Tue Jun 04 22:08:48 2024 +0700
@@ -16,7 +16,7 @@
     Scene(name: "Donut", meshes: loadMeshes("donut.glb", MeshMaterial)[0].toSeq),
   ]
 
-  var engine = initEngine("Test meshes")
+  var engine = InitEngine("Test meshes")
   const
     shaderConfiguration = createShaderConfiguration(
       name = "default shader",
@@ -46,12 +46,12 @@
   """,
       fragmentCode = "color = texture(baseTexture[materialIndexOut], colorTexCoord) * vertexColor;"
     )
-  engine.initRenderer({MeshMaterial: shaderConfiguration})
+  engine.InitRenderer({MeshMaterial: shaderConfiguration})
 
   for scene in scenes.mitems:
     scene.addShaderGlobal("projection", Unit4F32)
     scene.addShaderGlobal("view", Unit4F32)
-    engine.loadScene(scene)
+    engine.LoadScene(scene)
 
   var
     size = 1'f32
@@ -87,8 +87,8 @@
       "view",
        Scale(size, size, size) * Rotate(elevation, NewVec3f(1, 0, 0)) * Rotate(azimut, Yf32)
     )
-    engine.renderScene(scenes[currentScene])
-  engine.destroy()
+    engine.RenderScene(scenes[currentScene])
+  engine.Destroy()
 
 when isMainModule:
   main()