6#include <imgui_impl_sdl2.h>
7#include <imgui_impl_opengl3.h>
31 ImGui::DockSpaceOverViewport(ImGui::GetMainViewport(),
32 ImGuiDockNodeFlags_NoDockingOverCentralNode |
33 ImGuiDockNodeFlags_PassthruCentralNode);
38 ImGui::SetWindowFocus(
nullptr);
42 const ImGuiIO& io = ImGui::GetIO();
49 if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable) {
50 SDL_Window* backup_current_window = SDL_GL_GetCurrentWindow();
51 SDL_GLContext backup_current_context = SDL_GL_GetCurrentContext();
52 ImGui::UpdatePlatformWindows();
53 ImGui::RenderPlatformWindowsDefault();
54 SDL_GL_MakeCurrent(backup_current_window, backup_current_context);
ImGuiLayer(ImGuiManager &manager)
Interface for display layers.
Coverage
Describes how much of the screen is currently covered by a particular layer.
ZIndex
Determines stacking order of layers: layers with higher Z-indices are closer to the viewer.
A frame buffer where pixels can be written to.
void ImGui_ImplOpenGL3_NewFrame()
void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData *draw_data)
void ImGui_ImplSDL2_NewFrame()
This file implemented 3 utility functions: