mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Merge branch 'master' into docking
# Conflicts: # imgui.cpp # imgui_internal.h
This commit is contained in:
		| @@ -814,7 +814,7 @@ static void ShowDemoWindowWidgets() | ||||
|         // Here we are grabbing the font texture because that's the only one we have access to inside the demo code. | ||||
|         // Remember that ImTextureID is just storage for whatever you want it to be, it is essentially a value that will be passed to the render function inside the ImDrawCmd structure. | ||||
|         // If you use one of the default imgui_impl_XXXX.cpp renderer, they all have comments at the top of their file to specify what they expect to be stored in ImTextureID. | ||||
|         // (for example, the imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer. The imgui_impl_glfw_gl3.cpp renderer expect a GLuint OpenGL texture identifier etc.) | ||||
|         // (for example, the imgui_impl_dx11.cpp renderer expect a 'ID3D11ShaderResourceView*' pointer. The imgui_impl_opengl3.cpp renderer expect a GLuint OpenGL texture identifier etc.) | ||||
|         // If you decided that ImTextureID = MyEngineTexture*, then you can pass your MyEngineTexture* pointers to ImGui::Image(), and gather width/height through your own functions, etc. | ||||
|         // Using ShowMetricsWindow() as a "debugger" to inspect the draw data that are being passed to your render will help you debug issues if you are confused about this. | ||||
|         // Consider using the lower-level ImDrawList::AddImage() API, via ImGui::GetWindowDrawList()->AddImage(). | ||||
| @@ -3019,7 +3019,10 @@ void ImGui::ShowAboutWindow(bool* p_open) | ||||
|         bool copy_to_clipboard = ImGui::Button("Copy to clipboard"); | ||||
|         ImGui::BeginChildFrame(ImGui::GetID("cfginfos"), ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 18), ImGuiWindowFlags_NoMove); | ||||
|         if (copy_to_clipboard) | ||||
|         { | ||||
|             ImGui::LogToClipboard(); | ||||
|             ImGui::LogText("```\n"); // Back quotes will make the text appears without formatting when pasting to GitHub | ||||
|         } | ||||
|  | ||||
|         ImGui::Text("Dear ImGui %s (%d)", IMGUI_VERSION, IMGUI_VERSION_NUM); | ||||
|         ImGui::Separator(); | ||||
| @@ -3131,7 +3134,10 @@ void ImGui::ShowAboutWindow(bool* p_open) | ||||
|         ImGui::Text("style.ItemInnerSpacing: %.2f,%.2f", style.ItemInnerSpacing.x, style.ItemInnerSpacing.y); | ||||
|  | ||||
|         if (copy_to_clipboard) | ||||
|         { | ||||
|             ImGui::LogText("\n```\n"); | ||||
|             ImGui::LogFinish(); | ||||
|         } | ||||
|         ImGui::EndChildFrame(); | ||||
|     } | ||||
|     ImGui::End(); | ||||
| @@ -4475,9 +4481,9 @@ static void ShowExampleAppCustomRendering(bool* p_open) | ||||
|             ImVec2 window_size = ImGui::GetWindowSize(); | ||||
|             ImVec2 window_center = ImVec2(window_pos.x + window_size.x * 0.5f, window_pos.y + window_size.y * 0.5f); | ||||
|             if (draw_bg) | ||||
|                 ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 32, 10+4); | ||||
|                 ImGui::GetBackgroundDrawList()->AddCircle(window_center, window_size.x * 0.6f, IM_COL32(255, 0, 0, 200), 48, 10+4); | ||||
|             if (draw_fg) | ||||
|                 ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 32, 10); | ||||
|                 ImGui::GetForegroundDrawList()->AddCircle(window_center, window_size.y * 0.6f, IM_COL32(0, 255, 0, 200), 48, 10); | ||||
|             ImGui::EndTabItem(); | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user