diff examples/E04_input.nim @ 1139:114f395b9144

did: finish refactoring and updated all tests accordingly
author sam <sam@basx.dev>
date Sat, 08 Jun 2024 14:58:25 +0700
parents 71315636ba82
children 5934c5615f13
line wrap: on
line diff
--- a/examples/E04_input.nim	Tue Jun 04 22:08:48 2024 +0700
+++ b/examples/E04_input.nim	Sat Jun 08 14:58:25 2024 +0700
@@ -115,13 +115,13 @@
     cursormesh = newMesh(
       positions = positions,
       colors = arrow_colors,
-      material = matDef.initMaterialData(),
+      material = matDef.InitMaterialData(),
     )
     keyboardmesh = newMesh(
       positions = keyvertexpos,
       colors = keyvertexcolor,
       indices = keymeshindices,
-      material = matDef.initMaterialData(),
+      material = matDef.InitMaterialData(),
     )
     backgroundmesh = newMesh(
       positions = @[
@@ -137,7 +137,7 @@
         backgroundColor,
       ],
       indices = @[[0'u16, 1'u16, 2'u16], [2'u16, 3'u16, 0'u16]],
-      material = matDef.initMaterialData(),
+      material = matDef.InitMaterialData(),
     )
 
   # define mesh objects