backend-infra-engineer: Release v0.3.9-hotfix7 snapshot

This commit is contained in:
scawful
2025-11-23 13:37:10 -05:00
parent c8289bffda
commit 2934c82b75
202 changed files with 34914 additions and 845 deletions

View File

@@ -3,7 +3,7 @@
#include <SDL.h>
#include "app/controller.h"
#include "app/gfx/backend/sdl2_renderer.h"
#include "app/gfx/backend/renderer_factory.h"
#include "app/gui/core/style.h"
#include "app/platform/window.h"
#include "imgui.h"
@@ -53,12 +53,17 @@ void TestEditor::RegisterTests(ImGuiTestEngine* engine) {
}
#endif
// TODO: Fix the window/controller management
// NOTE: Window/controller lifecycle management needs refactoring.
// Current issues:
// 1. Window created via CreateWindow but controller.window() used for ImGui init
// 2. Window and controller have separate SDL window handles
// 3. Test engine cleanup order may cause issues
// TODO(integration): Unify window management between core::Window and Controller
int RunIntegrationTest() {
yaze::Controller controller;
yaze::core::Window window;
// Create renderer for test
auto test_renderer = std::make_unique<yaze::gfx::SDL2Renderer>();
// Create renderer for test (uses factory for SDL2/SDL3 selection)
auto test_renderer = yaze::gfx::RendererFactory::Create();
yaze::core::CreateWindow(window, test_renderer.get(), SDL_WINDOW_RESIZABLE);
IMGUI_CHECKVERSION();
ImGui::CreateContext();