Mercurial > games > semicongine
diff examples/E03_hello_cube.nim @ 529:eb92723db7b2
fix: API changes
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 05 Feb 2023 00:28:18 +0700 |
parents | f2c97bdbb0b3 |
children | 21c276c0a968 |
line wrap: on
line diff
--- a/examples/E03_hello_cube.nim Sun Feb 05 00:20:07 2023 +0700 +++ b/examples/E03_hello_cube.nim Sun Feb 05 00:28:18 2023 +0700 @@ -85,7 +85,8 @@ var myengine = igniteEngine("Hello cube") # build a mesh - var trianglemesh = new IndexedMesh[VertexDataA, uint16] + var trianglemesh = new Mesh[VertexDataA, uint16] + trianglemesh.indexed = true trianglemesh.vertexData = VertexDataA( position: PositionAttribute[Vec3](data: cube_pos), color: ColorAttribute[Vec3](data: cube_color),