Textures and palette moved to graphics.

This commit is contained in:
Zed A. Shaw 2026-02-27 13:09:44 -05:00
parent b91e9ffaf6
commit 229ad2dd95
30 changed files with 31 additions and 31 deletions

View file

@ -5,7 +5,7 @@
#include "systems.hpp" #include "systems.hpp"
#include "components.hpp" #include "components.hpp"
#include "rituals.hpp" #include "rituals.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include <list> #include <list>
using lighting::LightRender; using lighting::LightRender;

View file

@ -1,5 +1,5 @@
#include <fmt/core.h> #include <fmt/core.h>
#include "palette.hpp" #include "graphics/palette.hpp"
#include "config.hpp" #include "config.hpp"
#include "dbc.hpp" #include "dbc.hpp"

View file

@ -1,4 +1,4 @@
#include "textures.hpp" #include "graphics/textures.hpp"
#include <SFML/Graphics/Image.hpp> #include <SFML/Graphics/Image.hpp>
#include "dbc.hpp" #include "dbc.hpp"
#include <fmt/core.h> #include <fmt/core.h>

View file

@ -1,9 +1,9 @@
#include "backend.hpp" #include "backend.hpp"
#include "shaders.hpp" #include "shaders.hpp"
#include "sound.hpp" #include "sound.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include "config.hpp" #include "config.hpp"
#include "palette.hpp" #include "graphics/palette.hpp"
namespace sfml { namespace sfml {
using namespace nlohmann; using namespace nlohmann;

View file

@ -2,7 +2,7 @@
#include "components.hpp" #include "components.hpp"
#include "events.hpp" #include "events.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "textures.hpp" #include "graphics/textures.hpp"
namespace guecs { namespace guecs {
Clickable make_action(guecs::Entity gui_id, game::Event event); Clickable make_action(guecs::Entity gui_id, game::Event event);

View file

@ -10,7 +10,7 @@
#include <iostream> #include <iostream>
#include <fmt/xchar.h> #include <fmt/xchar.h>
#include <fstream> #include <fstream>
#include "palette.hpp" #include "graphics/palette.hpp"
#include "game_level.hpp" #include "game_level.hpp"
constexpr const int MAP_WIDTH=13; constexpr const int MAP_WIDTH=13;

View file

@ -1,5 +1,5 @@
#pragma once #pragma once
#include "textures.hpp" #include "graphics/textures.hpp"
#include "algos/matrix.hpp" #include "algos/matrix.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include <string> #include <string>

View file

@ -1,5 +1,5 @@
#pragma once #pragma once
#include "textures.hpp" #include "graphics/textures.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include <memory> #include <memory>

View file

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "constants.hpp" #include "constants.hpp"
#include <deque> #include <deque>
#include "textures.hpp" #include "graphics/textures.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "rituals.hpp" #include "rituals.hpp"
#include "simplefsm.hpp" #include "simplefsm.hpp"

View file

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "constants.hpp" #include "constants.hpp"
#include <deque> #include <deque>
#include "textures.hpp" #include "graphics/textures.hpp"
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "gui/ritual_ui.hpp" #include "gui/ritual_ui.hpp"
#include "gui/guecstra.hpp" #include "gui/guecstra.hpp"

View file

@ -1,6 +1,6 @@
#include "lights.hpp" #include "lights.hpp"
#include "constants.hpp" #include "constants.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include <vector> #include <vector>
using std::vector; using std::vector;

View file

@ -1,5 +1,5 @@
#include "gui/fsm.hpp" #include "gui/fsm.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include "sound.hpp" #include "sound.hpp"
#include "autowalker.hpp" #include "autowalker.hpp"
#include "ai/ai.hpp" #include "ai/ai.hpp"

View file

@ -33,8 +33,8 @@ sources = files(
'storyboard/ui.cpp', 'storyboard/ui.cpp',
# graphics # graphics
'textures.cpp', 'graphics/textures.cpp',
'palette.cpp', 'graphics/palette.cpp',
'shaders.cpp', 'shaders.cpp',
'scene.cpp', 'scene.cpp',
'animation.cpp', 'animation.cpp',

View file

@ -8,7 +8,7 @@
#include <memory> #include <memory>
#include <numbers> #include <numbers>
#include "components.hpp" #include "components.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include "systems.hpp" #include "systems.hpp"
#include "shaders.hpp" #include "shaders.hpp"
#include "animation.hpp" #include "animation.hpp"

View file

@ -4,7 +4,7 @@
#include <SFML/System/Clock.hpp> #include <SFML/System/Clock.hpp>
#include "algos/spatialmap.hpp" #include "algos/spatialmap.hpp"
#include "game_level.hpp" #include "game_level.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
using matrix::Matrix; using matrix::Matrix;
using RGBA = uint32_t; using RGBA = uint32_t;

View file

@ -2,7 +2,7 @@
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>
#include "textures.hpp" #include "graphics/textures.hpp"
#include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/RenderWindow.hpp>
#include <guecs/ui.hpp> #include <guecs/ui.hpp>
#include "camera.hpp" #include "camera.hpp"

View file

@ -5,7 +5,7 @@
#include "components.hpp" #include "components.hpp"
#include "rituals.hpp" #include "rituals.hpp"
#include "algos/maze.hpp" #include "algos/maze.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include "inventory.hpp" #include "inventory.hpp"
#include "systems.hpp" #include "systems.hpp"
#include "animation.hpp" #include "animation.hpp"

View file

@ -1,5 +1,5 @@
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include "textures.hpp" #include "graphics/textures.hpp"
#include "dinkyecs.hpp" #include "dinkyecs.hpp"
#include "config.hpp" #include "config.hpp"
#include <iostream> #include <iostream>

View file

@ -10,7 +10,7 @@
#include "game_level.hpp" #include "game_level.hpp"
#include "components.hpp" #include "components.hpp"
#include "ai/ai.hpp" #include "ai/ai.hpp"
#include "palette.hpp" #include "graphics/palette.hpp"
using namespace combat; using namespace combat;
using namespace boss; using namespace boss;

View file

@ -6,7 +6,7 @@
#include "game_level.hpp" #include "game_level.hpp"
#include "systems.hpp" #include "systems.hpp"
#include <cmath> #include <cmath>
#include "textures.hpp" #include "graphics/textures.hpp"
using namespace fmt; using namespace fmt;
using namespace nlohmann; using namespace nlohmann;

View file

@ -9,7 +9,7 @@
#include <fstream> #include <fstream>
#include "map.hpp" #include "map.hpp"
#include <memory> #include <memory>
#include "textures.hpp" #include "graphics/textures.hpp"
using namespace nlohmann; using namespace nlohmann;
using namespace fmt; using namespace fmt;

View file

@ -1,7 +1,7 @@
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <fmt/core.h> #include <fmt/core.h>
#include <string> #include <string>
#include "palette.hpp" #include "graphics/palette.hpp"
using namespace fmt; using namespace fmt;

View file

@ -1,7 +1,7 @@
#include <catch2/catch_test_macros.hpp> #include <catch2/catch_test_macros.hpp>
#include <fmt/core.h> #include <fmt/core.h>
#include <string> #include <string>
#include "textures.hpp" #include "graphics/textures.hpp"
#include "constants.hpp" #include "constants.hpp"
#include "components.hpp" #include "components.hpp"

View file

@ -1,4 +1,4 @@
#include "textures.hpp" #include "graphics/textures.hpp"
#include "sound.hpp" #include "sound.hpp"
#include "autowalker.hpp" #include "autowalker.hpp"
#include "ai/ai.hpp" #include "ai/ai.hpp"

View file

@ -2,7 +2,7 @@
#include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Font.hpp> #include <SFML/Graphics/Font.hpp>
#include "guecs.hpp" #include "guecs.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include "components.hpp" #include "components.hpp"
#include <SFML/System/Clock.hpp> #include <SFML/System/Clock.hpp>

View file

@ -1,4 +1,4 @@
#include "textures.hpp" #include "graphics/textures.hpp"
#include <SFML/Graphics.hpp> #include <SFML/Graphics.hpp>
#include <SFML/System.hpp> #include <SFML/System.hpp>
#include <SFML/Audio.hpp> #include <SFML/Audio.hpp>

View file

@ -8,8 +8,8 @@
#include "shiterator.hpp" #include "shiterator.hpp"
#include <functional> #include <functional>
#include <iostream> #include <iostream>
#include "textures.hpp" #include "graphics/textures.hpp"
#include "palette.hpp" #include "graphics/palette.hpp"
namespace fs = std::filesystem; namespace fs = std::filesystem;
constexpr const int TILE_COUNT=10; constexpr const int TILE_COUNT=10;

View file

@ -1,5 +1,5 @@
#include "gui/fsm.hpp" #include "gui/fsm.hpp"
#include "textures.hpp" #include "graphics/textures.hpp"
#include "sound.hpp" #include "sound.hpp"
#include <iostream> #include <iostream>
#include "shaders.hpp" #include "shaders.hpp"