comparison tests/test_panel.nim @ 431:e13b75bff00c

intermediate commit :P
author Sam <sam@basx.dev>
date Fri, 09 Feb 2024 20:02:55 +0700
parents c5999345f42c
children 08b8facaf3b7
comparison
equal deleted inserted replaced
430:c5999345f42c 431:e13b75bff00c
8 var engine = initEngine("Test panels") 8 var engine = initEngine("Test panels")
9 engine.initRenderer([]) 9 engine.initRenderer([])
10 10
11 # build scene 11 # build scene
12 var scene = Scene(name: "main") 12 var scene = Scene(name: "main")
13 var panel = initPanel(position: newVec2f(0, 0), size: newVec2f(0.1, 0.1)) 13 var panel = Panel(position: newVec2f(0, 0), size: newVec2f(0.1, 0.1))
14 14
15 scene.add panel 15 scene.add panel
16 engine.loadScene(scene) 16 engine.loadScene(scene)
17 17
18 while engine.updateInputs() == Running and not engine.keyIsDown(Escape): 18 while engine.updateInputs() == Running and not engine.keyIsDown(Escape):