diff tests/test_materials.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_materials.nim	Tue Jun 04 20:51:22 2024 +0700
+++ b/tests/test_materials.nim	Tue Jun 04 22:08:48 2024 +0700
@@ -37,7 +37,7 @@
   var scene = Scene(name: "main", meshes: @[flag])
   scene.addShaderGlobalArray("test2", @[NewVec4f(), NewVec4f()])
 
-  var engine = initEngine("Test materials")
+  var engine = InitEngine("Test materials")
 
   const
     shaderConfiguration1 = createShaderConfiguration(
@@ -63,16 +63,16 @@
       color = texture(tex1, uvout) * (1 - d) + texture(tex2, uvout) * d;
       """,
     )
-  engine.initRenderer({
+  engine.InitRenderer({
     doubleTextureMaterial: shaderConfiguration1,
   })
-  engine.loadScene(scene)
+  engine.LoadScene(scene)
   var t = cpuTime()
   while engine.UpdateInputs() and not KeyIsDown(Escape):
     var d = float32(cpuTime() - t)
     setShaderGlobalArray(scene, "test2", @[NewVec4f(d), NewVec4f(d * 2)])
-    engine.renderScene(scene)
-  engine.destroy()
+    engine.RenderScene(scene)
+  engine.Destroy()
 
 
 when isMainModule: