Imgui examples attempt to fix

This commit is contained in:
Matteo De Carlo
2024-10-12 12:06:31 +02:00
parent a831925fe9
commit c9e1d19dd3
41 changed files with 32029 additions and 14264 deletions
+8 -8
View File
@@ -6,8 +6,8 @@
#ifdef _WIN32
#include "ImGui/imgui_impl_win32.h"
#elif defined(SDL2)
#include "ImGui/imgui_impl_sdl.h"
#elif defined(SDL3)
#include "ImGui/imgui_impl_sdl3.h"
#endif
#include <fstream>
@@ -99,8 +99,8 @@ Example_ImGui::~Example_ImGui()
//ImGui_ImplDX11_Shutdown();
#ifdef _WIN32
ImGui_ImplWin32_Shutdown();
#elif defined(SDL2)
ImGui_ImplSDL2_Shutdown();
#elif defined(SDL3)
ImGui_ImplSDL3_Shutdown();
#endif
ImGui::DestroyContext();
}
@@ -131,8 +131,8 @@ void Example_ImGui::Initialize()
#ifdef _WIN32
ImGui_ImplWin32_Init(window);
#elif defined(SDL2)
ImGui_ImplSDL2_InitForVulkan(window);
#elif defined(SDL3)
ImGui_ImplSDL3_InitForVulkan(window);
#endif
IM_ASSERT(io.BackendRendererUserData == NULL && "Already initialized a renderer backend!");
@@ -376,8 +376,8 @@ void Example_ImGuiRenderer::Update(float dt)
#ifdef _WIN32
ImGui_ImplWin32_NewFrame();
#elif defined(SDL2)
ImGui_ImplSDL2_NewFrame();
#elif defined(SDL3)
ImGui_ImplSDL3_NewFrame();
#endif
ImGui::NewFrame();