Mercurial > games > semicongine
diff 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 |
line wrap: on
line diff
--- a/examples/E01_hello_triangle.nim Mon Jun 03 16:05:17 2024 +0700 +++ b/examples/E01_hello_triangle.nim Tue Jun 04 16:51:50 2024 +0700 @@ -20,8 +20,8 @@ var scene = Scene(name: "scene", meshes: @[newMesh( - positions = [newVec3f(-0.5, 0.5), newVec3f(0, -0.5), newVec3f(0.5, 0.5)], - colors = [newVec4f(1, 0, 0, 1), newVec4f(0, 1, 0, 1), newVec4f(0, 0, 1, 1)], + positions = [NewVec3f(-0.5, 0.5), NewVec3f(0, -0.5), NewVec3f(0.5, 0.5)], + colors = [NewVec4f(1, 0, 0, 1), NewVec4f(0, 1, 0, 1), NewVec4f(0, 0, 1, 1)], material = VERTEX_COLORED_MATERIAL.initMaterialData() )] )