Imgui examples attempt to fix
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user