diff tests/test_vulkan_wrapper.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_vulkan_wrapper.nim	Tue Jun 04 20:51:22 2024 +0700
+++ b/tests/test_vulkan_wrapper.nim	Tue Jun 04 22:08:48 2024 +0700
@@ -183,7 +183,7 @@
   result = @[r1, r2]
 
 proc main() =
-  var engine = initEngine("Test")
+  var engine = InitEngine("Test")
 
   # INIT RENDERER:
   const
@@ -214,7 +214,7 @@
       vertexCode = """gl_Position = vec4(position, 1.0) * transform; outcolor = Uniforms.color[0];""",
       fragmentCode = "color = outcolor;",
     )
-  engine.initRenderer({
+  engine.InitRenderer({
     Mat1Type: shaderConfiguration1,
     Mat1Type: shaderConfiguration1,
     Mat2Type: shaderConfiguration1,
@@ -231,7 +231,7 @@
   ]
 
   for scene in scenes.mitems:
-    engine.loadScene(scene)
+    engine.LoadScene(scene)
 
   # MAINLOOP
   echo "Setup successfull, start rendering"
@@ -240,13 +240,13 @@
       echo "rendering scene ", scene.name
       for i in 0 ..< 1000:
         if not engine.UpdateInputs() or KeyIsDown(Escape):
-          engine.destroy()
+          engine.Destroy()
           return
-        engine.renderScene(scene)
+        engine.RenderScene(scene)
 
   # cleanup
   echo "Start cleanup"
-  engine.destroy()
+  engine.Destroy()
 
 when isMainModule:
   main()