Mercurial > games > semicongine
comparison examples/E01_hello_triangle.nim @ 1136:71315636ba82
did: refactor naming in tons of places
| author | sam <sam@basx.dev> |
|---|---|
| date | Tue, 04 Jun 2024 16:51:50 +0700 |
| parents | d6c27f0ed3e4 |
| children | 114f395b9144 |
comparison
equal
deleted
inserted
replaced
| 1135:74957cbf589b | 1136:71315636ba82 |
|---|---|
| 18 | 18 |
| 19 # scene setup | 19 # scene setup |
| 20 var | 20 var |
| 21 scene = Scene(name: "scene", | 21 scene = Scene(name: "scene", |
| 22 meshes: @[newMesh( | 22 meshes: @[newMesh( |
| 23 positions = [newVec3f(-0.5, 0.5), newVec3f(0, -0.5), newVec3f(0.5, 0.5)], | 23 positions = [NewVec3f(-0.5, 0.5), NewVec3f(0, -0.5), NewVec3f(0.5, 0.5)], |
| 24 colors = [newVec4f(1, 0, 0, 1), newVec4f(0, 1, 0, 1), newVec4f(0, 0, 1, 1)], | 24 colors = [NewVec4f(1, 0, 0, 1), NewVec4f(0, 1, 0, 1), NewVec4f(0, 0, 1, 1)], |
| 25 material = VERTEX_COLORED_MATERIAL.initMaterialData() | 25 material = VERTEX_COLORED_MATERIAL.initMaterialData() |
| 26 )] | 26 )] |
| 27 ) | 27 ) |
| 28 myengine = initEngine("Hello triangle", showFps = true) | 28 myengine = initEngine("Hello triangle", showFps = true) |
| 29 | 29 |
