diff examples/E03_hello_cube.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/E03_hello_cube.nim	Mon Jun 03 16:05:17 2024 +0700
+++ b/examples/E03_hello_cube.nim	Tue Jun 04 16:51:50 2024 +0700
@@ -4,14 +4,14 @@
 import ../semicongine
 
 const
-  TopLeftFront = newVec3f(-0.5'f32, -0.5'f32, -0.5'f32)
-  TopRightFront = newVec3f(0.5'f32, -0.5'f32, -0.5'f32)
-  BottomRightFront = newVec3f(0.5'f32, 0.5'f32, -0.5'f32)
-  BottomLeftFront = newVec3f(-0.5'f32, 0.5'f32, -0.5'f32)
-  TopLeftBack = newVec3f(0.5'f32, -0.5'f32, 0.5'f32)
-  TopRightBack = newVec3f(-0.5'f32, -0.5'f32, 0.5'f32)
-  BottomRightBack = newVec3f(-0.5'f32, 0.5'f32, 0.5'f32)
-  BottomLeftBack = newVec3f(0.5'f32, 0.5'f32, 0.5'f32)
+  TopLeftFront = NewVec3f(-0.5'f32, -0.5'f32, -0.5'f32)
+  TopRightFront = NewVec3f(0.5'f32, -0.5'f32, -0.5'f32)
+  BottomRightFront = NewVec3f(0.5'f32, 0.5'f32, -0.5'f32)
+  BottomLeftFront = NewVec3f(-0.5'f32, 0.5'f32, -0.5'f32)
+  TopLeftBack = NewVec3f(0.5'f32, -0.5'f32, 0.5'f32)
+  TopRightBack = NewVec3f(-0.5'f32, -0.5'f32, 0.5'f32)
+  BottomRightBack = NewVec3f(-0.5'f32, 0.5'f32, 0.5'f32)
+  BottomLeftBack = NewVec3f(0.5'f32, 0.5'f32, 0.5'f32)
 const
   cube_pos = @[
     TopLeftFront, TopRightFront, BottomRightFront, BottomLeftFront,     # front
@@ -21,9 +21,9 @@
     TopLeftBack, TopRightBack, TopRightFront, TopLeftFront,             # top
     BottomLeftFront, BottomRightFront, BottomRightBack, BottomLeftBack, # bottom
   ]
-  R = newVec4f(1, 0, 0, 1)
-  G = newVec4f(0, 1, 0, 1)
-  B = newVec4f(0, 0, 1, 1)
+  R = NewVec4f(1, 0, 0, 1)
+  G = NewVec4f(0, 1, 0, 1)
+  B = NewVec4f(0, 0, 1, 1)
   cube_color = @[
     R, R, R, R,
     R * 0.5'f32, R * 0.5'f32, R * 0.5'f32, R * 0.5'f32,