comparison examples/E01_hello_triangle.nim @ 957:d27c8dbfef1c

fix: always forget to reset this one when debugging :)
author sam <sam@basx.dev>
date Tue, 02 Apr 2024 00:37:42 +0700
parents cca6f1a675db
children d6c27f0ed3e4
comparison
equal deleted inserted replaced
956:cca6f1a675db 957:d27c8dbfef1c
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}, inFlightFrames = 1) 29 myengine.initRenderer({VERTEX_COLORED_MATERIAL: shaderConfiguration}, 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 transform[Vec3f](scene.meshes[0][], "position", scale(1.001, 1.001)) 33 transform[Vec3f](scene.meshes[0][], "position", scale(1.001, 1.001))
34 myengine.renderScene(scene) 34 myengine.renderScene(scene)