From 006466455644ddaaadcc9679024987a4febeb396 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 27 Feb 2026 11:43:14 -0500 Subject: [PATCH] Matrix moved. --- src/ai/ai.hpp | 2 +- src/ai/goap.hpp | 2 +- src/{ => algos}/matrix.cpp | 2 +- src/{ => algos}/matrix.hpp | 0 src/gui/map_view.hpp | 2 +- src/lights.hpp | 2 +- src/map.cpp | 2 +- src/map.hpp | 2 +- src/maze.hpp | 2 +- src/meson.build | 4 ++-- src/pathing.hpp | 2 +- src/raycaster.cpp | 2 +- src/shaders.hpp | 2 +- src/shiterator.hpp | 2 +- src/textures.hpp | 2 +- tests/amt_matrix.cpp | 4 ++-- tests/amt_test.cpp | 4 ++-- tests/matrix.cpp | 2 +- tests/mazes.cpp | 2 +- tests/pathing.cpp | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) rename src/{ => algos}/matrix.cpp (96%) rename src/{ => algos}/matrix.hpp (100%) diff --git a/src/ai/ai.hpp b/src/ai/ai.hpp index 3933b5e..0c34aea 100644 --- a/src/ai/ai.hpp +++ b/src/ai/ai.hpp @@ -1,6 +1,6 @@ #pragma once #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include #include #include diff --git a/src/ai/goap.hpp b/src/ai/goap.hpp index 4e5224b..1abb9b6 100644 --- a/src/ai/goap.hpp +++ b/src/ai/goap.hpp @@ -1,6 +1,6 @@ #pragma once #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include #include #include diff --git a/src/matrix.cpp b/src/algos/matrix.cpp similarity index 96% rename from src/matrix.cpp rename to src/algos/matrix.cpp index 35ee9ec..3bf7556 100644 --- a/src/matrix.cpp +++ b/src/algos/matrix.cpp @@ -1,4 +1,4 @@ -#include "matrix.hpp" +#include "algos/matrix.hpp" #include #include "constants.hpp" diff --git a/src/matrix.hpp b/src/algos/matrix.hpp similarity index 100% rename from src/matrix.hpp rename to src/algos/matrix.hpp diff --git a/src/gui/map_view.hpp b/src/gui/map_view.hpp index 36e859d..5a71ebe 100644 --- a/src/gui/map_view.hpp +++ b/src/gui/map_view.hpp @@ -1,6 +1,6 @@ #pragma once #include "textures.hpp" -#include "matrix.hpp" +#include "algos/matrix.hpp" #include #include #include "dinkyecs.hpp" diff --git a/src/lights.hpp b/src/lights.hpp index ef0005b..274931a 100644 --- a/src/lights.hpp +++ b/src/lights.hpp @@ -3,7 +3,7 @@ #include "dbc.hpp" #include "point.hpp" #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "pathing.hpp" #include "components.hpp" diff --git a/src/map.cpp b/src/map.cpp index 4869edb..443ad10 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -5,7 +5,7 @@ #include #include #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "rand.hpp" using std::vector, std::pair; diff --git a/src/map.hpp b/src/map.hpp index 622009c..77a9ba9 100644 --- a/src/map.hpp +++ b/src/map.hpp @@ -8,7 +8,7 @@ #include "point.hpp" #include "lights.hpp" #include "pathing.hpp" -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "constants.hpp" using lighting::LightSource; diff --git a/src/maze.hpp b/src/maze.hpp index 0751177..38b0859 100644 --- a/src/maze.hpp +++ b/src/maze.hpp @@ -1,5 +1,5 @@ #pragma once -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "map.hpp" namespace maze { diff --git a/src/meson.build b/src/meson.build index 1f4f7da..761b63c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -29,7 +29,7 @@ sources = files( 'gui/ritual_ui.cpp', 'gui/status_ui.cpp', - # cutscenes + # storyboard 'storyboard/ui.cpp', # graphics @@ -44,7 +44,7 @@ sources = files( 'camera.cpp', # algos - 'matrix.cpp', + 'algos/matrix.cpp', 'maze.cpp', 'pathing.cpp', 'rand.cpp', diff --git a/src/pathing.hpp b/src/pathing.hpp index f5775c0..6309b67 100644 --- a/src/pathing.hpp +++ b/src/pathing.hpp @@ -1,6 +1,6 @@ #pragma once #include "point.hpp" -#include "matrix.hpp" +#include "algos/matrix.hpp" #include using matrix::Matrix; diff --git a/src/raycaster.cpp b/src/raycaster.cpp index 6a70158..8511af2 100644 --- a/src/raycaster.cpp +++ b/src/raycaster.cpp @@ -1,6 +1,6 @@ #include "raycaster.hpp" #include "dbc.hpp" -#include "matrix.hpp" +#include "algos/matrix.hpp" #include #include #include diff --git a/src/shaders.hpp b/src/shaders.hpp index 51565b2..f3975a7 100644 --- a/src/shaders.hpp +++ b/src/shaders.hpp @@ -5,7 +5,7 @@ #include #include #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include namespace shaders { diff --git a/src/shiterator.hpp b/src/shiterator.hpp index dea7410..c8a8df1 100644 --- a/src/shiterator.hpp +++ b/src/shiterator.hpp @@ -115,7 +115,7 @@ * * ## Usage * - * Check the `matrix.hpp` for an example if you want to make it more conventient for your own type. + * Check the `algos/matrix.hpp` for an example if you want to make it more conventient for your own type. * * ## Thanks * diff --git a/src/textures.hpp b/src/textures.hpp index ff3ab0c..1a799da 100644 --- a/src/textures.hpp +++ b/src/textures.hpp @@ -7,7 +7,7 @@ #include #include #include -#include "matrix.hpp" +#include "algos/matrix.hpp" namespace textures { diff --git a/tests/amt_matrix.cpp b/tests/amt_matrix.cpp index e8ea6b9..61fee13 100644 --- a/tests/amt_matrix.cpp +++ b/tests/amt_matrix.cpp @@ -1,6 +1,6 @@ #include #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "pixel.hpp" using namespace amt; @@ -34,7 +34,7 @@ int main() { std::println("{}", m); - + { auto ca = RGBA::from_hex(0x333333ff); auto cb = RGBA::from_hex(0xaabbccff); diff --git a/tests/amt_test.cpp b/tests/amt_test.cpp index e8ea6b9..61fee13 100644 --- a/tests/amt_test.cpp +++ b/tests/amt_test.cpp @@ -1,6 +1,6 @@ #include #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "pixel.hpp" using namespace amt; @@ -34,7 +34,7 @@ int main() { std::println("{}", m); - + { auto ca = RGBA::from_hex(0x333333ff); auto cb = RGBA::from_hex(0xaabbccff); diff --git a/tests/matrix.cpp b/tests/matrix.cpp index fc19e53..a4fdbca 100644 --- a/tests/matrix.cpp +++ b/tests/matrix.cpp @@ -2,7 +2,7 @@ #include #include #include "config.hpp" -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "rand.hpp" #include "game_level.hpp" #include diff --git a/tests/mazes.cpp b/tests/mazes.cpp index 2653bfb..24cb9dd 100644 --- a/tests/mazes.cpp +++ b/tests/mazes.cpp @@ -1,7 +1,7 @@ #include #include #include -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "rand.hpp" #include "constants.hpp" #include "maze.hpp" diff --git a/tests/pathing.cpp b/tests/pathing.cpp index 40d12c7..318e176 100644 --- a/tests/pathing.cpp +++ b/tests/pathing.cpp @@ -3,7 +3,7 @@ #include #include #include "pathing.hpp" -#include "matrix.hpp" +#include "algos/matrix.hpp" #include "ai/ai.hpp" #include "game_level.hpp" #include