mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Added imguiSetCurrentScissor().
This commit is contained in:
parent
116f2179a4
commit
eb2fd71664
2 changed files with 6 additions and 0 deletions
|
@ -3217,6 +3217,11 @@ int32_t imguiGetWidgetY()
|
||||||
return s_imgui.getCurrentArea().m_widgetY;
|
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)
|
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);
|
return s_imgui.button(_text, _enabled, _align, _rgb0, _r);
|
||||||
|
|
|
@ -149,6 +149,7 @@ void imguiSeparatorLine(uint16_t _height = IMGUI_SEPARATOR_VALUE);
|
||||||
|
|
||||||
int32_t imguiGetWidgetX();
|
int32_t imguiGetWidgetX();
|
||||||
int32_t imguiGetWidgetY();
|
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 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);
|
bool imguiItem(const char* _text, bool _enabled = true);
|
||||||
|
|
Loading…
Reference in a new issue