diff tests/test_vulkan_wrapper.nim @ 109:8d24727c9795

did: refactor rendering/scene concept
author Sam <sam@basx.dev>
date Wed, 29 Mar 2023 23:35:39 +0700
parents 70f92081d2c1
children 6fd10b7e2d6a
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Tue Mar 28 00:20:49 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Wed Mar 29 23:35:39 2023 +0700
@@ -3,6 +3,8 @@
 import semicongine/vulkan
 import semicongine/platform/window
 import semicongine/math
+import semicongine/entity
+import semicongine/scene
 
 type
   Vertex = object
@@ -75,9 +77,11 @@
   if res != VK_SUCCESS:
     raise newException(Exception, "Unable to create swapchain")
 
+  var thescene = Scene(root: newEntity("scene"))
+
   echo "All successfull"
   for i in 0 ..< 2:
-    discard swapchain.drawNextFrame()
+    discard swapchain.drawNextFrame(thescene)
   echo "Rendered ", swapchain.framesRendered, " frames"
   echo "Start cleanup"