Mercurial > games > semicongine
diff examples/E01_hello_triangle.nim @ 145:a4e6e76128e6
add: upgrade all simple examples to new engine version
author | Sam <sam@basx.dev> |
---|---|
date | Wed, 26 Apr 2023 02:15:43 +0700 |
parents | fc5db4f1f94e |
children | 25d97fa0ad5c |
line wrap: on
line diff
--- a/examples/E01_hello_triangle.nim Tue Apr 25 18:32:23 2023 +0700 +++ b/examples/E01_hello_triangle.nim Wed Apr 26 02:15:43 2023 +0700 @@ -38,8 +38,7 @@ myengine.setRenderer(renderPass) myengine.addScene(triangle, vertexInput) -while myengine.running and not myengine.keyWasPressed(Escape): - myengine.updateInputs() +while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape): myengine.renderScene(triangle) myengine.destroy()