Mercurial > games > semicongine
diff examples/E01_hello_triangle.nim @ 1128:ae54dbb08e53
merge into git mirror
author | sam <sam@basx.dev> |
---|---|
date | Thu, 23 May 2024 01:44:10 +0700 |
parents | d6c27f0ed3e4 |
children | 71315636ba82 |
line wrap: on
line diff
--- a/examples/E01_hello_triangle.nim Mon Apr 29 02:37:42 2024 -0700 +++ b/examples/E01_hello_triangle.nim Thu May 23 01:44:10 2024 +0700 @@ -5,6 +5,7 @@ # shader setup const shaderConfiguration = createShaderConfiguration( + name = "default shader", inputs = [ attr[Vec3f]("position"), attr[Vec4f]("color"), @@ -29,7 +30,7 @@ myengine.initRenderer({VERTEX_COLORED_MATERIAL: shaderConfiguration}, inFlightFrames = 2) myengine.loadScene(scene) -while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape): +while myengine.UpdateInputs() and not KeyWasPressed(Escape): transform[Vec3f](scene.meshes[0][], "position", scale(1.001, 1.001)) myengine.renderScene(scene)