diff tests/test_vulkan_wrapper.nim @ 117:40ff2453855e

did: small changes from refactoring
author Sam <sam@basx.dev>
date Wed, 05 Apr 2023 00:41:11 +0700
parents e18538442837
children 2780d9aad142
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Wed Apr 05 00:40:38 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Wed Apr 05 00:41:11 2023 +0700
@@ -1,12 +1,7 @@
+import std/os
 import std/options
 
-import semicongine/vulkan
-import semicongine/platform/window
-import semicongine/math
-import semicongine/entity
-import semicongine/scene
-import semicongine/gpu_data
-import semicongine/mesh
+import semicongine
 
 proc diagnostics(instance: Instance) =
   # diagnostic output
@@ -40,7 +35,6 @@
       echo "    " & $format
 
 when isMainModule:
-
   # INIT ENGINE:
   # create instance
   var thewindow = createWindow("Test")
@@ -92,7 +86,7 @@
   var thescene = Scene(
     name: "main",
     root: newEntity("root",
-      newEntity("triangle1", initMesh(
+      newEntity("triangle1", newMesh(
         positions=[newVec3f(0.0, -0.5), newVec3f(0.5, 0.5), newVec3f(-0.5, 0.5)],
         colors=[newVec3f(1.0, 0.0, 0.0), newVec3f(0.0, 1.0, 0.0), newVec3f(0.0, 0.0, 1.0)],
       )),