Mercurial > games > semicongine
comparison examples/E01_hello_triangle.nim @ 954:79c0f3271748
did: set correct parameters
author | sam <sam@basx.dev> |
---|---|
date | Mon, 01 Apr 2024 01:05:20 +0700 |
parents | fe48b091e83f |
children | 53249d9bb7a3 |
comparison
equal
deleted
inserted
replaced
950:fe48b091e83f | 954:79c0f3271748 |
---|---|
24 material = VERTEX_COLORED_MATERIAL.initMaterialData() | 24 material = VERTEX_COLORED_MATERIAL.initMaterialData() |
25 )] | 25 )] |
26 ) | 26 ) |
27 myengine = initEngine("Hello triangle", showFps = true) | 27 myengine = initEngine("Hello triangle", showFps = true) |
28 | 28 |
29 myengine.initRenderer({VERTEX_COLORED_MATERIAL: shaderConfiguration}, vSync = false, inFlightFrames = 1) | 29 myengine.initRenderer({VERTEX_COLORED_MATERIAL: shaderConfiguration}, vSync = false, inFlightFrames = 2) |
30 myengine.loadScene(scene) | 30 myengine.loadScene(scene) |
31 | 31 |
32 while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape): | 32 while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape): |
33 echo "" | |
34 transform[Vec3f](scene.meshes[0][], "position", scale(1.001, 1.001)) | 33 transform[Vec3f](scene.meshes[0][], "position", scale(1.001, 1.001)) |
35 myengine.renderScene(scene) | 34 myengine.renderScene(scene) |
36 | 35 |
37 myengine.destroy() | 36 myengine.destroy() |