mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Merge branch 'master' into viewport
This commit is contained in:
		@@ -2009,7 +2009,7 @@ static void ShowDemoWindowLayout()
 | 
			
		||||
    {
 | 
			
		||||
        static ImVec2 size(100, 100), offset(50, 20);
 | 
			
		||||
        ImGui::TextWrapped("On a per-widget basis we are occasionally clipping text CPU-side if it won't fit in its frame. Otherwise we are doing coarser clipping + passing a scissor rectangle to the renderer. The system is designed to try minimizing both execution and CPU/GPU rendering cost.");
 | 
			
		||||
        ImGui::DragFloat2("size", (float*)&size, 0.5f, 0.0f, 200.0f, "%.0f");
 | 
			
		||||
        ImGui::DragFloat2("size", (float*)&size, 0.5f, 1.0f, 200.0f, "%.0f");
 | 
			
		||||
        ImGui::TextWrapped("(Click and drag)");
 | 
			
		||||
        ImVec2 pos = ImGui::GetCursorScreenPos();
 | 
			
		||||
        ImVec4 clip_rect(pos.x, pos.y, pos.x + size.x, pos.y + size.y);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user