# HG changeset patch # User Sam # Date 1694442682 -25200 # Node ID 7a13941ba204c061a1779667b9b183de797141e5 # Parent de1e4d0ee5270ef7c9d426860a836d2daa7295fa fix: all tests diff -r de1e4d0ee527 -r 7a13941ba204 tests/test_collision.nim --- a/tests/test_collision.nim Mon Sep 11 21:30:58 2023 +0700 +++ b/tests/test_collision.nim Mon Sep 11 21:31:22 2023 +0700 @@ -1,5 +1,3 @@ -import std/tables - import semicongine proc main() = @@ -28,7 +26,7 @@ var engine = initEngine("Test collisions") - engine.initRenderer({"": shaderConfiguration}.toTable) + engine.initRenderer({"": shaderConfiguration}) engine.addScene(scene) while engine.updateInputs() == Running and not engine.keyIsDown(Escape): diff -r de1e4d0ee527 -r 7a13941ba204 tests/test_font.nim --- a/tests/test_font.nim Mon Sep 11 21:30:58 2023 +0700 +++ b/tests/test_font.nim Mon Sep 11 21:31:22 2023 +0700 @@ -1,5 +1,4 @@ import std/unicode -import std/tables import semicongine @@ -11,14 +10,12 @@ scene.add textbox textbox.mesh.transform = scale(0.01, 0.01) var engine = initEngine("Test fonts") - engine.initRenderer() - scene.addShaderGlobal("perspective", Unit4F32) + engine.initRenderer([]) engine.addScene(scene) while engine.updateInputs() == Running and not engine.keyIsDown(Escape): if engine.windowWasResized(): var winSize = engine.getWindow().size - scene.setShaderGlobal("perspective", orthoWindowAspect(winSize[1] / winSize[0])) textbox.mesh.transform = scale(0.01 * (winSize[1] / winSize[0]), 0.01) for c in [Key.A, Key.B, Key.C, Key.D, Key.E, Key.F, Key.G, Key.H, Key.I, Key.J, Key.K, Key.L, Key.M, Key.N, Key.O, Key.P, Key.Q, Key.R, Key.S, Key.T, Key.U, Key.V, Key.W, Key.X, Key.Y, Key.Z]: if engine.keyWasPressed(c): diff -r de1e4d0ee527 -r 7a13941ba204 tests/test_materials.nim --- a/tests/test_materials.nim Mon Sep 11 21:30:58 2023 +0700 +++ b/tests/test_materials.nim Mon Sep 11 21:31:22 2023 +0700 @@ -52,7 +52,7 @@ ) engine.initRenderer({ "material": shaderConfiguration1, - }.toTable) + }) engine.addScene(scene) var t = cpuTime() while engine.updateInputs() == Running and not engine.keyIsDown(Escape): diff -r de1e4d0ee527 -r 7a13941ba204 tests/test_mesh.nim --- a/tests/test_mesh.nim Mon Sep 11 21:30:58 2023 +0700 +++ b/tests/test_mesh.nim Mon Sep 11 21:31:22 2023 +0700 @@ -51,7 +51,7 @@ "Material.001": shaderConfiguration, "Material.002": shaderConfiguration, "Material.004": shaderConfiguration, - }.toTable) + }) for scene in scenes.mitems: scene.addShaderGlobal("projection", Unit4F32) diff -r de1e4d0ee527 -r 7a13941ba204 tests/test_vulkan_wrapper.nim --- a/tests/test_vulkan_wrapper.nim Mon Sep 11 21:30:58 2023 +0700 +++ b/tests/test_vulkan_wrapper.nim Mon Sep 11 21:31:22 2023 +0700 @@ -189,7 +189,7 @@ "mat": shaderConfiguration1, "mat2": shaderConfiguration1, "mat3": shaderConfiguration2, - }.toTable) + }) # INIT SCENES var scenes = [