From 28495960695f2ae8bb272fb6b4468ea29835416b Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 25 Dec 2015 11:59:49 +0100 Subject: [PATCH] Comments about ImDrawList::PushClipRect --- imgui.h | 2 +- imgui_draw.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.h b/imgui.h index d5700b9d..7c8c11fe 100644 --- a/imgui.h +++ b/imgui.h @@ -1107,7 +1107,7 @@ struct ImDrawList ~ImDrawList() { ClearFreeMemory(); } IMGUI_API void Clear(); IMGUI_API void ClearFreeMemory(); - IMGUI_API void PushClipRect(const ImVec4& clip_rect); // Scissoring. The values are x1, y1, x2, y2. + IMGUI_API void PushClipRect(const ImVec4& clip_rect); // Scissoring. The values are x1, y1, x2, y2. Only apply to rendering. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) IMGUI_API void PushClipRectFullScreen(); IMGUI_API void PopClipRect(); IMGUI_API void PushTextureID(const ImTextureID& texture_id); diff --git a/imgui_draw.cpp b/imgui_draw.cpp index eafed6ac..69d86ca2 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -205,7 +205,7 @@ void ImDrawList::UpdateTextureID() #undef GetCurrentClipRect #undef GetCurrentTextureId -// Scissoring. The values in clip_rect are x1, y1, x2, y2. +// Scissoring. The values in clip_rect are x1, y1, x2, y2. Only apply to rendering! Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) void ImDrawList::PushClipRect(const ImVec4& clip_rect) { _ClipRectStack.push_back(clip_rect);