summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 13:40:34 +1100
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-18 13:40:34 +1100
commit68f590c848e0e91d70e7116655464f392ed6df46 (patch)
treedbe75dacac14bc377a3ca11e3e6f5a835c32b881
parentf5190745aed65b231e380fa3f25fce46d220dcbc (diff)
chore: format
-rw-r--r--include/celeritas.h7
-rw-r--r--src/camera.c6
-rw-r--r--src/scene.c10
3 files changed, 8 insertions, 15 deletions
diff --git a/include/celeritas.h b/include/celeritas.h
index 6b8a673..534fb85 100644
--- a/include/celeritas.h
+++ b/include/celeritas.h
@@ -578,11 +578,7 @@ typedef struct keyframes {
size_t n_frames;
} keyframes;
-typedef enum interpolation {
- Interpolation_Step,
- Interpolation_Linear,
- Interpolation_Cubic
-} interpolation;
+typedef enum interpolation { Interpolation_Step, Interpolation_Linear, Interpolation_Cubic } interpolation;
typedef struct animation_spline {
f32* timestamps;
@@ -594,7 +590,6 @@ typedef struct animation_spline {
// --- Input
-
// --- Collisions
// --- Physics
diff --git a/src/camera.c b/src/camera.c
index 79f9c19..eb8fc7d 100644
--- a/src/camera.c
+++ b/src/camera.c
@@ -6,10 +6,8 @@ mat4 camera_view_proj(camera camera, f32 lens_height, f32 lens_width, mat4* out_
vec3 camera_direction = vec3_add(camera.position, camera.forwards);
mat4 view_matrix = mat4_look_at(camera.position, camera_direction, camera.up);
- if (out_view)
- *out_view = view_matrix;
- if (out_proj)
- *out_proj = projection_matrix;
+ if (out_view) *out_view = view_matrix;
+ if (out_proj) *out_proj = projection_matrix;
return mat4_mult(view_matrix, projection_matrix);
} \ No newline at end of file
diff --git a/src/scene.c b/src/scene.c
index fa4d9b5..26e19dc 100644
--- a/src/scene.c
+++ b/src/scene.c
@@ -1,17 +1,17 @@
/**
* @file scene.c
* @author your name (you@domain.com)
- * @brief
+ * @brief
* @version 0.1
* @date 2024-10-18
- *
+ *
* @copyright Copyright (c) 2024
- *
+ *
*/
#include <celeritas.h>
-// Retained mode scene tree that handles performant transform propagation, and allows systems, or other languages via bindings, to
-// manipulate rendering/scene data without *owning* said data.
+// Retained mode scene tree that handles performant transform propagation, and allows systems, or other languages via
+// bindings, to manipulate rendering/scene data without *owning* said data.
typedef struct scene_tree_node {
const char* label;