Mercurial > games > semicongine
diff tests/test_font.nim @ 805:7a13941ba204
fix: all tests
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 11 Sep 2023 21:31:22 +0700 |
parents | a9c67e1ecb8d |
children | f054b8bacab8 |
line wrap: on
line diff
--- 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):