58 ImGui::CreateContext();
61 ImGuiTestEngine* engine = ImGuiTestEngine_CreateContext();
62 ImGuiTestEngineIO& test_io = ImGuiTestEngine_GetIO(engine);
63 test_io.ConfigVerboseLevel = ImGuiTestVerboseLevel_Info;
64 test_io.ConfigVerboseLevelOnError = ImGuiTestVerboseLevel_Debug;
66 ImGuiIO& io = ImGui::GetIO();
67 io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
70 ImGui_ImplSDL2_InitForSDLRenderer(
72 ImGui_ImplSDLRenderer2_Init(
76 ImGuiTestEngine_Start(engine, ImGui::GetCurrentContext());
83 ImGui_ImplSDLRenderer2_NewFrame();
84 ImGui_ImplSDL2_NewFrame();
88 if (
const auto status = controller.
OnTestLoad(); !status.ok()) {
94 ImGuiTestEngine_Stop(engine);