From eb2fd71664cfe4dabb0f55b4176003657dab797b Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 23 Nov 2014 01:07:58 +0100 Subject: [PATCH] Added imguiSetCurrentScissor(). --- examples/common/imgui/imgui.cpp | 5 +++++ examples/common/imgui/imgui.h | 1 + 2 files changed, 6 insertions(+) diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index fe56dbfc..825d0fdc 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -3217,6 +3217,11 @@ int32_t imguiGetWidgetY() return s_imgui.getCurrentArea().m_widgetY; } +void imguiSetCurrentScissor() +{ + return s_imgui.setCurrentScissor(); +} + bool imguiButton(const char* _text, bool _enabled, ImguiAlign::Enum _align, uint32_t _rgb0, int32_t _r) { return s_imgui.button(_text, _enabled, _align, _rgb0, _r); diff --git a/examples/common/imgui/imgui.h b/examples/common/imgui/imgui.h index f9f1fb77..c356a934 100644 --- a/examples/common/imgui/imgui.h +++ b/examples/common/imgui/imgui.h @@ -149,6 +149,7 @@ void imguiSeparatorLine(uint16_t _height = IMGUI_SEPARATOR_VALUE); int32_t imguiGetWidgetX(); int32_t imguiGetWidgetY(); +void imguiSetCurrentScissor(); // Call before drawing custom widgets over imgui area. bool imguiButton(const char* _text, bool _enabled = true, ImguiAlign::Enum _align = ImguiAlign::LeftIndented, uint32_t _rgb0 = IMGUI_BUTTON_RGB0, int32_t _r = IMGUI_BUTTON_R); bool imguiItem(const char* _text, bool _enabled = true);