refactor(gfx): reorganize graphics includes and introduce new types

- Updated include paths for various graphics-related headers to improve organization and clarity.
- Introduced new types for SNES color, palette, and tile management, enhancing the structure of the graphics subsystem.
- Refactored existing code to utilize the new types, ensuring consistency across the codebase.

Benefits:
- Improves maintainability and readability of the graphics code.
- Facilitates future enhancements and optimizations within the graphics subsystem.
This commit is contained in:
scawful
2025-10-13 00:09:34 -04:00
parent c0d410d7f0
commit 6374da6194
131 changed files with 429 additions and 315 deletions

View File

@@ -3,8 +3,8 @@
#include <algorithm>
#include <sstream>
#include "app/gfx/bpp_format_manager.h"
#include "app/gfx/bitmap.h"
#include "app/gfx/util/bpp_format_manager.h"
#include "app/gfx/core/bitmap.h"
#include "app/gui/ui_helpers.h"
#include "imgui/imgui.h"

View File

@@ -5,9 +5,9 @@
#include <vector>
#include <functional>
#include "app/gfx/bpp_format_manager.h"
#include "app/gfx/bitmap.h"
#include "app/gfx/snes_palette.h"
#include "app/gfx/util/bpp_format_manager.h"
#include "app/gfx/core/bitmap.h"
#include "app/gfx/types/snes_palette.h"
namespace yaze {
namespace gui {

View File

@@ -1,8 +1,8 @@
#include "canvas_context_menu.h"
#include "app/gfx/arena.h"
#include "app/gfx/performance/performance_profiler.h"
#include "app/gfx/performance/performance_dashboard.h"
#include "app/gfx/resource/arena.h"
#include "app/gfx/debug/performance/performance_profiler.h"
#include "app/gfx/debug/performance/performance_dashboard.h"
#include "app/gui/widgets/palette_widget.h"
#include "app/gui/icons.h"
#include "app/gui/color.h"

View File

@@ -6,8 +6,8 @@
#include <unordered_map>
#include <vector>
#include "app/gfx/bitmap.h"
#include "app/gfx/snes_palette.h"
#include "app/gfx/core/bitmap.h"
#include "app/gfx/types/snes_palette.h"
#include "app/gui/icons.h"
#include "app/gui/canvas/canvas_modals.h"
#include "canvas_usage_tracker.h"

View File

@@ -2,8 +2,8 @@
#define YAZE_APP_GUI_CANVAS_CANVAS_INTERACTION_HANDLER_H
#include <vector>
#include "app/gfx/bitmap.h"
#include "app/gfx/tilemap.h"
#include "app/gfx/core/bitmap.h"
#include "app/gfx/render/tilemap.h"
#include "imgui/imgui.h"
namespace yaze {

View File

@@ -4,8 +4,8 @@
#include <sstream>
#include <iomanip>
#include "app/gfx/performance/performance_profiler.h"
#include "app/gfx/performance/performance_dashboard.h"
#include "app/gfx/debug/performance/performance_profiler.h"
#include "app/gfx/debug/performance/performance_dashboard.h"
#include "app/gui/widgets/palette_widget.h"
#include "app/gui/canvas/bpp_format_ui.h"
#include "app/gui/icons.h"

View File

@@ -4,9 +4,9 @@
#include <string>
#include <functional>
#include <utility>
#include "app/gfx/bitmap.h"
#include "app/gfx/snes_palette.h"
#include "app/gfx/bpp_format_manager.h"
#include "app/gfx/core/bitmap.h"
#include "app/gfx/types/snes_palette.h"
#include "app/gfx/util/bpp_format_manager.h"
#include "app/gui/canvas/canvas_utils.h"
#include "imgui/imgui.h"

View File

@@ -5,8 +5,8 @@
#include <iomanip>
#include <chrono>
#include "app/gfx/performance/performance_profiler.h"
#include "app/gfx/performance/performance_dashboard.h"
#include "app/gfx/debug/performance/performance_profiler.h"
#include "app/gfx/debug/performance/performance_dashboard.h"
#include "util/log.h"
#include "imgui/imgui.h"

View File

@@ -6,8 +6,8 @@
#include <unordered_map>
#include <memory>
#include <functional>
#include "app/gfx/performance/performance_profiler.h"
#include "app/gfx/performance/performance_dashboard.h"
#include "app/gfx/debug/performance/performance_profiler.h"
#include "app/gfx/debug/performance/performance_dashboard.h"
#include "canvas_usage_tracker.h"
#include "imgui/imgui.h"

View File

@@ -1,8 +1,8 @@
#include "canvas_utils.h"
#include <cmath>
#include "app/gfx/arena.h"
#include "app/gfx/snes_palette.h"
#include "app/gfx/resource/arena.h"
#include "app/gfx/types/snes_palette.h"
#include "util/log.h"
namespace yaze {

View File

@@ -3,7 +3,7 @@
#include <string>
#include <vector>
#include "app/gfx/snes_palette.h"
#include "app/gfx/types/snes_palette.h"
#include "app/rom.h"
#include "imgui/imgui.h"