# HG changeset patch # User Sam # Date 1685774657 -25200 # Node ID 5cd6808150fc8632f81291848a1d7bce40010f7f # Parent eb1a6ca20a84c3459e2b8724093fbce0080c14c3 did: adjust for small API change diff -r eb1a6ca20a84 -r 5cd6808150fc examples/E01_hello_triangle.nim --- a/examples/E01_hello_triangle.nim Sat Jun 03 13:32:15 2023 +0700 +++ b/examples/E01_hello_triangle.nim Sat Jun 03 13:44:17 2023 +0700 @@ -36,7 +36,7 @@ renderPass = myengine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode) myengine.setRenderer(renderPass) -myengine.addScene(triangle, vertexInput, @[]) +myengine.addScene(triangle, vertexInput, @[], transformAttribute="") while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape): myengine.renderScene(triangle) diff -r eb1a6ca20a84 -r 5cd6808150fc examples/E02_squares.nim --- a/examples/E02_squares.nim Sat Jun 03 13:32:15 2023 +0700 +++ b/examples/E02_squares.nim Sat Jun 03 13:44:17 2023 +0700 @@ -82,7 +82,7 @@ myengine.setRenderer(myengine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode)) var scene = newScene("scene", newEntity("scene", newEntity("squares", squaremesh))) - myengine.addScene(scene, vertexInput, @[]) + myengine.addScene(scene, vertexInput, @[], transformAttribute="") scene.addShaderGlobal("time", 0.0'f32) while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape): setShaderGlobal(scene, "time", getShaderGlobal[float32](scene, "time") + 0.0005'f) diff -r eb1a6ca20a84 -r 5cd6808150fc examples/E03_hello_cube.nim --- a/examples/E03_hello_cube.nim Sat Jun 03 13:32:15 2023 +0700 +++ b/examples/E03_hello_cube.nim Sat Jun 03 13:44:17 2023 +0700 @@ -82,7 +82,7 @@ cube.addShaderGlobal("projection", Unit4f32) cube.addShaderGlobal("view", Unit4f32) cube.addShaderGlobal("model", Unit4f32) - myengine.addScene(cube, vertexInput, @[]) + myengine.addScene(cube, vertexInput, @[], transformAttribute="") var t: float32 = cpuTime() while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape):