diff tests/test_vulkan_wrapper.nim @ 733:07c755e65a4a

add: final font-rendering, API changes fixed
author Sam <sam@basx.dev>
date Tue, 30 May 2023 16:59:01 +0700
parents 5f7ec8d1bd33
children da0bd61abe91
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Tue May 30 16:58:35 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Tue May 30 16:59:01 2023 +0700
@@ -1,3 +1,5 @@
+import std/tables
+
 import semicongine
 
 proc scene_different_mesh_types(): Entity =
@@ -124,14 +126,14 @@
   for scene in scenes.mitems:
     scene.addShaderGlobal("time", 0.0'f32)
     let (R, W) = ([255'u8, 0'u8, 0'u8, 255'u8], [255'u8, 255'u8, 255'u8, 255'u8])
-    scene.addTexture("my_little_texture", Texture(image: Image(width: 5, height: 5, imagedata: @[
+    scene.addMaterial(Material(name: "my_material", textures: {"my_little_texture": Texture(image: Image(width: 5, height: 5, imagedata: @[
       R, R, R, R, R,
       R, R, W, R, R,
       R, W, W, W, R,
       R, R, W, R, R,
       R, R, R, R, R,
-    ]), sampler: sampler))
-    engine.addScene(scene, vertexInput, samplers)
+    ]), sampler: sampler)}.toTable))
+    engine.addScene(scene, vertexInput, samplers, transformAttribute="")
 
   # MAINLOOP
   echo "Setup successfull, start rendering"