@@ -55,6 +55,7 @@ Index of this file:
55
55
// [SECTION] ImGuiApp Implementation: SDL + OpenGL3
56
56
// [SECTION] ImGuiApp Implementation: GLFW + OpenGL3
57
57
// [SECTION] ImGuiApp Implementation: OpenGL (Shared)
58
+ // [SECTION] Mock backend for multi-viewports (Shared): The viewports are not visible
58
59
59
60
*/
60
61
@@ -120,7 +121,7 @@ bool ImGuiApp_ScreenCaptureFunc(ImGuiID viewport_id, int x, int y, int w, int h,
120
121
// -----------------------------------------------------------------------------
121
122
122
123
#ifdef IMGUI_HAS_VIEWPORT
123
- static void ImGuiApp_InstalMockViewportsBackend (ImGuiApp*);
124
+ static void ImGuiApp_InstallMockViewportsBackend (ImGuiApp*);
124
125
#endif
125
126
126
127
// Data
@@ -135,7 +136,7 @@ static void ImGuiApp_ImplNull_InitBackends(ImGuiApp* app)
135
136
#ifdef IMGUI_HAS_VIEWPORT
136
137
ImGuiIO& io = ImGui::GetIO ();
137
138
if (app->MockViewports && (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable))
138
- ImGuiApp_InstalMockViewportsBackend (app);
139
+ ImGuiApp_InstallMockViewportsBackend (app);
139
140
#else
140
141
IM_UNUSED (app);
141
142
#endif
@@ -348,7 +349,7 @@ static void ImGuiApp_ImplWin32DX11_InitBackends(ImGuiApp* app_opaque)
348
349
#ifdef IMGUI_HAS_VIEWPORT
349
350
ImGuiIO& io = ImGui::GetIO ();
350
351
if (app->MockViewports && (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable))
351
- ImGuiApp_InstalMockViewportsBackend (app);
352
+ ImGuiApp_InstallMockViewportsBackend (app);
352
353
#endif
353
354
}
354
355
@@ -714,7 +715,7 @@ static void ImGuiApp_ImplSdlGL2_InitBackends(ImGuiApp* app_opaque)
714
715
#ifdef IMGUI_HAS_VIEWPORT
715
716
ImGuiIO& io = ImGui::GetIO ();
716
717
if (app->MockViewports && (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable))
717
- ImGuiApp_InstalMockViewportsBackend (app);
718
+ ImGuiApp_InstallMockViewportsBackend (app);
718
719
#endif
719
720
}
720
721
@@ -860,7 +861,7 @@ static void ImGuiApp_ImplSdlGL3_InitBackends(ImGuiApp* app_opaque)
860
861
#ifdef IMGUI_HAS_VIEWPORT
861
862
ImGuiIO& io = ImGui::GetIO ();
862
863
if (app->MockViewports && (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable))
863
- ImGuiApp_InstalMockViewportsBackend (app);
864
+ ImGuiApp_InstallMockViewportsBackend (app);
864
865
#endif
865
866
}
866
867
@@ -1068,7 +1069,7 @@ static void ImGuiApp_ImplGlfw_InitBackends(ImGuiApp* app_opaque)
1068
1069
#ifdef IMGUI_HAS_VIEWPORT
1069
1070
ImGuiIO& io = ImGui::GetIO ();
1070
1071
if (app->MockViewports && (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable))
1071
- ImGuiApp_InstalMockViewportsBackend (app);
1072
+ ImGuiApp_InstallMockViewportsBackend (app);
1072
1073
#endif
1073
1074
}
1074
1075
@@ -1200,13 +1201,11 @@ static bool ImGuiApp_ImplGL_CaptureFramebuffer(ImGuiApp* app, ImGuiViewport* vie
1200
1201
#endif
1201
1202
1202
1203
// -----------------------------------------------------------------------------
1203
- // [SECTION] Mock backend for multi-viewports (Shared)
1204
- // The viewports are not visible
1204
+ // [SECTION] Mock backend for multi-viewports (Shared): The viewports are not visible
1205
1205
// -----------------------------------------------------------------------------
1206
1206
1207
1207
#ifdef IMGUI_HAS_VIEWPORT
1208
1208
1209
-
1210
1209
// A virtual window
1211
1210
struct ImGui_ImplMockViewport_ViewportData
1212
1211
{
@@ -1239,7 +1238,7 @@ static ImGui_ImplMockViewport_ViewportData* ImGui_ImplNullViewport_FindViewportD
1239
1238
}
1240
1239
1241
1240
// Mock backend (viewports not visible)
1242
- static void ImGuiApp_InstalMockViewportsBackend (ImGuiApp*)
1241
+ static void ImGuiApp_InstallMockViewportsBackend (ImGuiApp*)
1243
1242
{
1244
1243
ImGuiIO& io = ImGui::GetIO ();
1245
1244
0 commit comments