diff options
| author | 3gg <3gg@shellblade.net> | 2025-10-30 20:08:53 -0700 | 
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-10-30 20:08:53 -0700 | 
| commit | 6fde17649f7404e79a17d4d8f96662d03011aca1 (patch) | |
| tree | a93738b26dab567fe551b62e2a4bd1b1556460b1 | |
| parent | 440b292c39162284a447b34d3a692143af9fbc87 (diff) | |
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | include/gfx/animation.h (renamed from include/gfx/scene/animation.h) | 1 | ||||
| -rw-r--r-- | include/gfx/scene.h | 1 | ||||
| -rw-r--r-- | src/animation.c (renamed from src/scene/animation.c) | 1 | ||||
| -rw-r--r-- | src/animation_impl.h (renamed from src/scene/animation_impl.h) | 2 | ||||
| -rw-r--r-- | src/asset/asset_cache.c | 2 | ||||
| -rw-r--r-- | src/asset/model.c | 2 | ||||
| -rw-r--r-- | src/memory.c | 2 | ||||
| -rw-r--r-- | src/memory.h | 2 | ||||
| -rw-r--r-- | src/render/llr.c | 2 | ||||
| -rw-r--r-- | src/render/llr_impl.h | 2 | ||||
| -rw-r--r-- | src/render/renderer.c | 2 | ||||
| -rw-r--r-- | src/scene/node_impl.h | 2 | ||||
| -rw-r--r-- | src/scene/object_impl.h | 2 | ||||
| -rw-r--r-- | src/scene/scene_impl.h | 2 | ||||
| -rw-r--r-- | src/types.h (renamed from src/scene/types.h) | 0 | 
16 files changed, 12 insertions, 15 deletions
| diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e05db1..44f679a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -38,6 +38,7 @@ add_shader_library(shaders | |||
| 38 | shaders/view_texture.vert) | 38 | shaders/view_texture.vert) | 
| 39 | 39 | ||
| 40 | add_library(gfx SHARED | 40 | add_library(gfx SHARED | 
| 41 | src/animation.c | ||
| 41 | src/asset/asset_cache.c | 42 | src/asset/asset_cache.c | 
| 42 | src/asset/model.c | 43 | src/asset/model.c | 
| 43 | src/asset/texture.c | 44 | src/asset/texture.c | 
| @@ -53,7 +54,6 @@ add_library(gfx SHARED | |||
| 53 | src/render/imm.c | 54 | src/render/imm.c | 
| 54 | src/render/llr.c | 55 | src/render/llr.c | 
| 55 | src/render/renderer.c | 56 | src/render/renderer.c | 
| 56 | src/scene/animation.c | ||
| 57 | src/scene/camera.c | 57 | src/scene/camera.c | 
| 58 | src/scene/model.c | 58 | src/scene/model.c | 
| 59 | src/scene/node.c | 59 | src/scene/node.c | 
| diff --git a/include/gfx/scene/animation.h b/include/gfx/animation.h index 11d8984..b55e575 100644 --- a/include/gfx/scene/animation.h +++ b/include/gfx/animation.h | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | // TODO: Move outside of scene/ | ||
| 2 | #pragma once | 1 | #pragma once | 
| 3 | 2 | ||
| 4 | #include <gfx/sizes.h> | 3 | #include <gfx/sizes.h> | 
| diff --git a/include/gfx/scene.h b/include/gfx/scene.h index e9a6a89..3098221 100644 --- a/include/gfx/scene.h +++ b/include/gfx/scene.h | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #pragma once | 1 | #pragma once | 
| 2 | 2 | ||
| 3 | #include <gfx/scene/animation.h> | ||
| 4 | #include <gfx/scene/camera.h> | 3 | #include <gfx/scene/camera.h> | 
| 5 | #include <gfx/scene/model.h> | 4 | #include <gfx/scene/model.h> | 
| 6 | #include <gfx/scene/node.h> | 5 | #include <gfx/scene/node.h> | 
| diff --git a/src/scene/animation.c b/src/animation.c index a498961..c52df73 100644 --- a/src/scene/animation.c +++ b/src/animation.c | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | #include "animation_impl.h" | 1 | #include "animation_impl.h" | 
| 2 | 2 | ||
| 3 | #include "memory.h" | 3 | #include "memory.h" | 
| 4 | #include "node_impl.h" | ||
| 5 | 4 | ||
| 6 | #include <string.h> | 5 | #include <string.h> | 
| 7 | 6 | ||
| diff --git a/src/scene/animation_impl.h b/src/animation_impl.h index ef1492c..4929b97 100644 --- a/src/scene/animation_impl.h +++ b/src/animation_impl.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #pragma once | 1 | #pragma once | 
| 2 | 2 | ||
| 3 | #include <gfx/scene/animation.h> | 3 | #include <gfx/animation.h> | 
| 4 | #include <gfx/sizes.h> | 4 | #include <gfx/sizes.h> | 
| 5 | 5 | ||
| 6 | #include "types.h" | 6 | #include "types.h" | 
| diff --git a/src/asset/asset_cache.c b/src/asset/asset_cache.c index 191a5fd..2df0242 100644 --- a/src/asset/asset_cache.c +++ b/src/asset/asset_cache.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | #include "asset_cache.h" | 1 | #include "asset_cache.h" | 
| 2 | 2 | ||
| 3 | #include "../animation_impl.h" | ||
| 3 | #include "memory.h" | 4 | #include "memory.h" | 
| 4 | #include "model.h" | 5 | #include "model.h" | 
| 5 | #include "scene/animation_impl.h" | ||
| 6 | #include "scene/model_impl.h" | 6 | #include "scene/model_impl.h" | 
| 7 | #include "scene/node_impl.h" | 7 | #include "scene/node_impl.h" | 
| 8 | #include "texture.h" | 8 | #include "texture.h" | 
| diff --git a/src/asset/model.c b/src/asset/model.c index df116fb..f5131d2 100644 --- a/src/asset/model.c +++ b/src/asset/model.c | |||
| @@ -85,10 +85,10 @@ | |||
| 85 | #include "gfx_assert.h" | 85 | #include "gfx_assert.h" | 
| 86 | #include "scene/model_impl.h" | 86 | #include "scene/model_impl.h" | 
| 87 | 87 | ||
| 88 | #include <gfx/animation.h> | ||
| 88 | #include <gfx/core.h> | 89 | #include <gfx/core.h> | 
| 89 | #include <gfx/gfx.h> | 90 | #include <gfx/gfx.h> | 
| 90 | #include <gfx/render/llr.h> | 91 | #include <gfx/render/llr.h> | 
| 91 | #include <gfx/scene/animation.h> | ||
| 92 | #include <gfx/scene/camera.h> | 92 | #include <gfx/scene/camera.h> | 
| 93 | #include <gfx/scene/node.h> | 93 | #include <gfx/scene/node.h> | 
| 94 | #include <gfx/scene/object.h> | 94 | #include <gfx/scene/object.h> | 
| diff --git a/src/memory.c b/src/memory.c index 3481791..a4d6920 100644 --- a/src/memory.c +++ b/src/memory.c | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | #include <gfx/scene/camera.h> | 3 | #include <gfx/scene/camera.h> | 
| 4 | #include <gfx/sizes.h> | 4 | #include <gfx/sizes.h> | 
| 5 | 5 | ||
| 6 | #include "animation_impl.h" | ||
| 6 | #include "render/llr_impl.h" | 7 | #include "render/llr_impl.h" | 
| 7 | #include "scene/animation_impl.h" | ||
| 8 | #include "scene/model_impl.h" | 8 | #include "scene/model_impl.h" | 
| 9 | #include "scene/node_impl.h" | 9 | #include "scene/node_impl.h" | 
| 10 | #include "scene/object_impl.h" | 10 | #include "scene/object_impl.h" | 
| diff --git a/src/memory.h b/src/memory.h index 624216d..bfbee66 100644 --- a/src/memory.h +++ b/src/memory.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /// Memory management of scene objects. | 1 | /// Memory management of scene objects. | 
| 2 | #pragma once | 2 | #pragma once | 
| 3 | 3 | ||
| 4 | #include "scene/types.h" | 4 | #include "types.h" | 
| 5 | 5 | ||
| 6 | typedef struct Camera Camera; | 6 | typedef struct Camera Camera; | 
| 7 | 7 | ||
| diff --git a/src/render/llr.c b/src/render/llr.c index 189041a..76935f9 100644 --- a/src/render/llr.c +++ b/src/render/llr.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #include "llr_impl.h" | 1 | #include "llr_impl.h" | 
| 2 | 2 | ||
| 3 | #include "animation_impl.h" | ||
| 3 | #include "memory.h" | 4 | #include "memory.h" | 
| 4 | #include "scene/animation_impl.h" | ||
| 5 | #include "scene/node_impl.h" | 5 | #include "scene/node_impl.h" | 
| 6 | 6 | ||
| 7 | #include <gfx/core.h> | 7 | #include <gfx/core.h> | 
| diff --git a/src/render/llr_impl.h b/src/render/llr_impl.h index 1c08b03..c85ad15 100644 --- a/src/render/llr_impl.h +++ b/src/render/llr_impl.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | #include <gfx/render/llr.h> | 3 | #include <gfx/render/llr.h> | 
| 4 | #include <gfx/sizes.h> | 4 | #include <gfx/sizes.h> | 
| 5 | 5 | ||
| 6 | #include "scene/types.h" | 6 | #include "../types.h" | 
| 7 | 7 | ||
| 8 | #include <math/mat4.h> | 8 | #include <math/mat4.h> | 
| 9 | #include <math/vec3.h> | 9 | #include <math/vec3.h> | 
| diff --git a/src/render/renderer.c b/src/render/renderer.c index 385a8c1..fadf521 100644 --- a/src/render/renderer.c +++ b/src/render/renderer.c | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | #include "renderer_impl.h" | 1 | #include "renderer_impl.h" | 
| 2 | 2 | ||
| 3 | #include "animation_impl.h" | ||
| 3 | #include "llr_impl.h" | 4 | #include "llr_impl.h" | 
| 4 | #include "memory.h" | 5 | #include "memory.h" | 
| 5 | #include "scene/animation_impl.h" | ||
| 6 | #include "scene/model_impl.h" | 6 | #include "scene/model_impl.h" | 
| 7 | #include "scene/node_impl.h" | 7 | #include "scene/node_impl.h" | 
| 8 | #include "scene/object_impl.h" | 8 | #include "scene/object_impl.h" | 
| diff --git a/src/scene/node_impl.h b/src/scene/node_impl.h index 15ee232..aba8c41 100644 --- a/src/scene/node_impl.h +++ b/src/scene/node_impl.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | #include <gfx/scene/node.h> | 3 | #include <gfx/scene/node.h> | 
| 4 | 4 | ||
| 5 | #include "types.h" | 5 | #include "../types.h" | 
| 6 | 6 | ||
| 7 | #include <math/camera.h> | 7 | #include <math/camera.h> | 
| 8 | #include <math/mat4.h> | 8 | #include <math/mat4.h> | 
| diff --git a/src/scene/object_impl.h b/src/scene/object_impl.h index b7a0752..1b14cb5 100644 --- a/src/scene/object_impl.h +++ b/src/scene/object_impl.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | #include <gfx/scene/object.h> | 3 | #include <gfx/scene/object.h> | 
| 4 | 4 | ||
| 5 | #include "types.h" | 5 | #include "../types.h" | 
| 6 | 6 | ||
| 7 | typedef struct MeshLink { | 7 | typedef struct MeshLink { | 
| 8 | mesh_idx mesh; | 8 | mesh_idx mesh; | 
| diff --git a/src/scene/scene_impl.h b/src/scene/scene_impl.h index 992f620..06a69f0 100644 --- a/src/scene/scene_impl.h +++ b/src/scene/scene_impl.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | #include <gfx/scene/scene.h> | 3 | #include <gfx/scene/scene.h> | 
| 4 | 4 | ||
| 5 | #include "types.h" | 5 | #include "../types.h" | 
| 6 | 6 | ||
| 7 | typedef struct SceneNode SceneNode; | 7 | typedef struct SceneNode SceneNode; | 
| 8 | 8 | ||
| diff --git a/src/scene/types.h b/src/types.h index d0ffc41..d0ffc41 100644 --- a/src/scene/types.h +++ b/src/types.h | |||
