Mercurial > games > semicongine
diff tests/test_panel.nim @ 1138:02e1d2658ff5
did: more renaming
author | sam <sam@basx.dev> |
---|---|
date | Tue, 04 Jun 2024 22:08:48 +0700 |
parents | a4aa9f374d44 |
children | 114f395b9144 |
line wrap: on
line diff
--- a/tests/test_panel.nim Tue Jun 04 20:51:22 2024 +0700 +++ b/tests/test_panel.nim Tue Jun 04 22:08:48 2024 +0700 @@ -20,8 +20,8 @@ proc main() = # setup engine - var engine = initEngine("Test panels") - engine.initRenderer([]) + var engine = InitEngine("Test panels") + engine.InitRenderer([]) const B = [0'u8, 0'u8, 0'u8, 255'u8] const T = [0'u8, 0'u8, 0'u8, 0'u8] @@ -62,7 +62,7 @@ scene.add button scene.add help_text scene.add origin - engine.loadScene(scene) + engine.LoadScene(scene) while engine.UpdateInputs() and not KeyIsDown(Escape): if KeyWasPressed(F1): @@ -91,8 +91,8 @@ origin.refresh() help_text.refresh() - engine.renderScene(scene) - engine.destroy() + engine.RenderScene(scene) + engine.Destroy() when isMainModule: