refactor: Update Renderer Logic and Introduce Direct Pixel Access Methods

- Removed direct renderer calls from LoadLinkGraphics and LoadAllGraphicsData to prepare for future renderer refactor.
- Added LockTexture and UnlockTexture methods to IRenderer and SDL2Renderer for direct pixel access, enhancing texture management capabilities.
- Updated CMake configuration to include the new SDL2Renderer source file, ensuring proper integration within the graphics backend.
This commit is contained in:
scawful
2025-10-07 14:39:36 -04:00
parent c6a581b202
commit b788d93071
5 changed files with 22 additions and 27 deletions

View File

@@ -15,6 +15,7 @@ set(
app/gfx/tilemap.cc
app/gfx/graphics_optimizer.cc
app/gfx/bpp_format_manager.cc
app/gfx/backend/sdl2_renderer.cc
)
# ==============================================================================