summaryrefslogtreecommitdiff
path: root/examples/primitives/ex_primitives.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-18 11:03:52 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-18 11:03:52 +1000
commitb2c9782ab2f4abec8f8548e667a8f2ad6e36bd4b (patch)
tree34973f37f585439357a5e455225d272e9398a742 /examples/primitives/ex_primitives.c
parent4b5695ce26a8f821dfac987e8e11a6ba5eeff610 (diff)
wip
Diffstat (limited to 'examples/primitives/ex_primitives.c')
-rw-r--r--examples/primitives/ex_primitives.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/primitives/ex_primitives.c b/examples/primitives/ex_primitives.c
index d39c0d1..5831910 100644
--- a/examples/primitives/ex_primitives.c
+++ b/examples/primitives/ex_primitives.c
@@ -30,7 +30,7 @@ int main() {
geometry_data sphere_data = geo_create_uvsphere(1.0, 8, 8);
mesh sphere = mesh_create(&sphere_data, false);
- geometry_data plane_data = geo_create_plane(f32x2(6,4));
+ geometry_data plane_data = geo_create_plane(f32x2(6, 4));
mesh plane = mesh_create(&plane_data, false);
// FIXME: // Texture
@@ -54,7 +54,7 @@ int main() {
mat4 sphere_model = transform_to_mat(&transform);
mat4 cube_model = mat4_translation(vec3(-2., 0, 0));
- mat4 plane_model = mat4_translation(vec3(0,-2,0));
+ mat4 plane_model = mat4_translation(vec3(0, -2, 0));
draw_mesh(&cube, &cube_model, &cam);
draw_mesh(&sphere, &sphere_model, &cam);
draw_mesh(&plane, &plane_model, &cam);