mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	Removed redirecting functions/enums names that were marked obsolete in 1.60: io.RenderDrawListsFn, IsAnyWindowFocused(), IsAnyWindowHovered(), etc.
This commit is contained in:
		
							
								
								
									
										18
									
								
								imgui.cpp
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								imgui.cpp
									
									
									
									
									
								
							| @@ -371,6 +371,12 @@ CODE | ||||
|  When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all imgui files. | ||||
|  You can read releases logs https://github.com/ocornut/imgui/releases for more details. | ||||
|  | ||||
|  - 2020/10/12 (1.80) - removed redirecting functions/enums that were marked obsolete in 1.60 (April 2018): | ||||
|                         - io.RenderDrawListsFn pointer        -> use ImGui::GetDrawData() value and call the render function of your back-end | ||||
|                         - ImGui::IsAnyWindowFocused()         -> use ImGui::IsWindowFocused(ImGuiFocusedFlags_AnyWindow) | ||||
|                         - ImGui::IsAnyWindowHovered()         -> use ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow) | ||||
|                         - ImGuiStyleVar_Count_                -> use ImGuiStyleVar_COUNT | ||||
|                         - ImGuiMouseCursor_Count_             -> use ImGuiMouseCursor_COUNT | ||||
|  - 2020/10/05 (1.79) - removed ImGuiListClipper: Renamed constructor parameters which created an ambiguous alternative to using the ImGuiListClipper::Begin() function, with misleading edge cases (note: imgui_memory_editor <0.40 from imgui_club/ used this old clipper API. Update your copy if needed). | ||||
|  - 2020/09/25 (1.79) - renamed ImGuiSliderFlags_ClampOnInput to ImGuiSliderFlags_AlwaysClamp. Kept redirection enum (will obsolete sooner because previous name was added recently). | ||||
|  - 2020/09/25 (1.79) - renamed style.TabMinWidthForUnselectedCloseButton to style.TabMinWidthForCloseButton. | ||||
| @@ -1038,10 +1044,6 @@ ImGuiIO::ImGuiIO() | ||||
|     ImeSetInputScreenPosFn = ImeSetInputScreenPosFn_DefaultImpl; | ||||
|     ImeWindowHandle = NULL; | ||||
|  | ||||
| #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS | ||||
|     RenderDrawListsFn = NULL; | ||||
| #endif | ||||
|  | ||||
|     // Input (NB: we already have memset zero the entire structure!) | ||||
|     MousePos = ImVec2(-FLT_MAX, -FLT_MAX); | ||||
|     MousePosPrev = ImVec2(-FLT_MAX, -FLT_MAX); | ||||
| @@ -3334,7 +3336,7 @@ ImGuiIO& ImGui::GetIO() | ||||
|     return GImGui->IO; | ||||
| } | ||||
|  | ||||
| // Same value as passed to the old io.RenderDrawListsFn function. Valid after Render() and until the next call to NewFrame() | ||||
| // Pass this to your back-end rendering function! Valid after Render() and until the next call to NewFrame() | ||||
| ImDrawData* ImGui::GetDrawData() | ||||
| { | ||||
|     ImGuiContext& g = *GImGui; | ||||
| @@ -4330,12 +4332,6 @@ void ImGui::Render() | ||||
|     g.IO.MetricsRenderVertices = g.DrawData.TotalVtxCount; | ||||
|     g.IO.MetricsRenderIndices = g.DrawData.TotalIdxCount; | ||||
|  | ||||
|     // (Legacy) Call the Render callback function. The current prefer way is to let the user retrieve GetDrawData() and call the render function themselves. | ||||
| #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS | ||||
|     if (g.DrawData.CmdListsCount > 0 && g.IO.RenderDrawListsFn != NULL) | ||||
|         g.IO.RenderDrawListsFn(&g.DrawData); | ||||
| #endif | ||||
|  | ||||
|     CallContextHooks(&g, ImGuiContextHookType_RenderPost); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user