Added imguiReserve().

This commit is contained in:
Dario Manesku 2014-06-23 03:15:38 +01:00
parent 99b2441378
commit 8c815f2f95
2 changed files with 10 additions and 1 deletions

View file

@ -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;
}

View file

@ -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