mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Added imguiReserve().
This commit is contained in:
parent
99b2441378
commit
8c815f2f95
2 changed files with 10 additions and 1 deletions
|
@ -1559,3 +1559,10 @@ void imguiDrawRect(float _x, float _y, float _width, float _height, uint32_t _ar
|
|||
{
|
||||
s_imgui.drawRect(_x, _y, _width, _height, _argb);
|
||||
}
|
||||
|
||||
int imguiReserve(int _y)
|
||||
{
|
||||
const int yy = s_imgui.m_widgetY;
|
||||
s_imgui.m_widgetY += _y;
|
||||
return yy;
|
||||
}
|
||||
|
|
|
@ -80,4 +80,6 @@ void imguiDrawLine(float _x0, float _y0, float _x1, float _y1, float _r, uint32_
|
|||
void imguiDrawRoundedRect(float _x, float _y, float _w, float _h, float _r, uint32_t _argb);
|
||||
void imguiDrawRect(float _x, float _y, float _w, float _h, uint32_t _argb);
|
||||
|
||||
int imguiReserve(int _y);
|
||||
|
||||
#endif // IMGUI_H_HEADER_GUARD
|
||||
|
|
Loading…
Reference in a new issue