mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Viewports, DPI: Renamed config flags. (#1542)
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
 | 
			
		||||
// Implemented features:
 | 
			
		||||
//  [X] User texture binding. Use 'GLUint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ about ImTextureID in imgui.cpp.
 | 
			
		||||
//  [X] Multi-viewport rendering (when ImGuiConfigFlags_EnableViewports is enabled).
 | 
			
		||||
//  [X] Multi-viewport rendering (when ImGuiConfigFlags_ViewportsEnable is enabled).
 | 
			
		||||
 | 
			
		||||
// **DO NOT USE THIS CODE IF YOUR CODE/ENGINE IS USING MODERN OPENGL (SHADERS, VBO, VAO, etc.)**
 | 
			
		||||
// **Prefer using the code in imgui_impl_opengl3.cpp**
 | 
			
		||||
@@ -51,7 +51,7 @@ bool    ImGui_ImplOpenGL2_Init()
 | 
			
		||||
    // Setup back-end capabilities flags
 | 
			
		||||
    ImGuiIO& io = ImGui::GetIO();
 | 
			
		||||
    io.BackendFlags |= ImGuiBackendFlags_RendererHasViewports;    // We can create multi-viewports on the Renderer side (optional)
 | 
			
		||||
    if (io.ConfigFlags & ImGuiConfigFlags_EnableViewports)
 | 
			
		||||
    if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
 | 
			
		||||
        ImGui_ImplOpenGL2_InitPlatformInterface();
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user