|
@@ -2796,6 +2796,16 @@ ImguiFontHandle imguiCreate(const void* _data, float _fontSize)
|
|
|
return s_imgui.create(_data, _fontSize);
|
|
return s_imgui.create(_data, _fontSize);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void imguiDestroy()
|
|
|
|
|
+{
|
|
|
|
|
+ s_imgui.destroy();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+ImguiFontHandle imguiCreateFont(const void* _data, float _fontSize)
|
|
|
|
|
+{
|
|
|
|
|
+ return s_imgui.createFont(_data, _fontSize);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void imguiSetFont(ImguiFontHandle _handle)
|
|
void imguiSetFont(ImguiFontHandle _handle)
|
|
|
{
|
|
{
|
|
|
s_imgui.setFont(_handle);
|
|
s_imgui.setFont(_handle);
|
|
@@ -2807,24 +2817,34 @@ ImguiFontHandle imguiGetCurrentFont()
|
|
|
return handle;
|
|
return handle;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-ImguiFontHandle imguiCreateFont(const void* _data, float _fontSize)
|
|
|
|
|
|
|
+void imguiBeginFrame(int32_t _mx, int32_t _my, uint8_t _button, int32_t _scroll, uint16_t _width, uint16_t _height, char _inputChar, uint8_t _view)
|
|
|
{
|
|
{
|
|
|
- return s_imgui.createFont(_data, _fontSize);
|
|
|
|
|
|
|
+ s_imgui.beginFrame(_mx, _my, _button, _scroll, _width, _height, _inputChar, _view);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void imguiDestroy()
|
|
|
|
|
|
|
+void imguiEndFrame()
|
|
|
{
|
|
{
|
|
|
- s_imgui.destroy();
|
|
|
|
|
|
|
+ s_imgui.endFrame();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void imguiBeginFrame(int32_t _mx, int32_t _my, uint8_t _button, int32_t _scroll, uint16_t _width, uint16_t _height, char _inputChar, uint8_t _view)
|
|
|
|
|
|
|
+void imguiDrawText(int32_t _x, int32_t _y, ImguiTextAlign::Enum _align, const char* _text, uint32_t _argb)
|
|
|
{
|
|
{
|
|
|
- s_imgui.beginFrame(_mx, _my, _button, _scroll, _width, _height, _inputChar, _view);
|
|
|
|
|
|
|
+ s_imgui.drawText(_x, _y, _align, _text, _argb);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void imguiEndFrame()
|
|
|
|
|
|
|
+void imguiDrawLine(float _x0, float _y0, float _x1, float _y1, float _r, uint32_t _argb)
|
|
|
{
|
|
{
|
|
|
- s_imgui.endFrame();
|
|
|
|
|
|
|
+ s_imgui.drawLine(_x0, _y0, _x1, _y1, _r, _argb);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+void imguiDrawRoundedRect(float _x, float _y, float _width, float _height, float _r, uint32_t _argb)
|
|
|
|
|
+{
|
|
|
|
|
+ s_imgui.drawRoundedRect(_x, _y, _width, _height, _r, _argb);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+void imguiDrawRect(float _x, float _y, float _width, float _height, uint32_t _argb)
|
|
|
|
|
+{
|
|
|
|
|
+ s_imgui.drawRect(_x, _y, _width, _height, _argb);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
bool imguiBorderButton(ImguiBorder::Enum _border, bool _checked, bool _enabled)
|
|
bool imguiBorderButton(ImguiBorder::Enum _border, bool _checked, bool _enabled)
|
|
@@ -2867,7 +2887,6 @@ void imguiEndScrollArea(int32_t _r)
|
|
|
s_imgui.endArea();
|
|
s_imgui.endArea();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
void imguiIndent(uint16_t _width)
|
|
void imguiIndent(uint16_t _width)
|
|
|
{
|
|
{
|
|
|
s_imgui.indent(_width);
|
|
s_imgui.indent(_width);
|
|
@@ -2913,6 +2932,14 @@ bool imguiCheck(const char* _text, bool _checked, bool _enabled)
|
|
|
return s_imgui.check(_text, _checked, _enabled);
|
|
return s_imgui.check(_text, _checked, _enabled);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void imguiBool(const char* _text, bool& _flag, bool _enabled)
|
|
|
|
|
+{
|
|
|
|
|
+ if (imguiCheck(_text, _flag, _enabled) )
|
|
|
|
|
+ {
|
|
|
|
|
+ _flag = !_flag;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
bool imguiCollapse(const char* _text, const char* _subtext, bool _checked, bool _enabled)
|
|
bool imguiCollapse(const char* _text, const char* _subtext, bool _checked, bool _enabled)
|
|
|
{
|
|
{
|
|
|
return s_imgui.collapse(_text, _subtext, _checked, _enabled);
|
|
return s_imgui.collapse(_text, _subtext, _checked, _enabled);
|
|
@@ -3016,34 +3043,6 @@ uint32_t imguiChooseUseMacroInstead(uint32_t _selected, ...)
|
|
|
return _selected;
|
|
return _selected;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void imguiDrawText(int32_t _x, int32_t _y, ImguiTextAlign::Enum _align, const char* _text, uint32_t _argb)
|
|
|
|
|
-{
|
|
|
|
|
- s_imgui.drawText(_x, _y, _align, _text, _argb);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void imguiDrawLine(float _x0, float _y0, float _x1, float _y1, float _r, uint32_t _argb)
|
|
|
|
|
-{
|
|
|
|
|
- s_imgui.drawLine(_x0, _y0, _x1, _y1, _r, _argb);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void imguiDrawRoundedRect(float _x, float _y, float _width, float _height, float _r, uint32_t _argb)
|
|
|
|
|
-{
|
|
|
|
|
- s_imgui.drawRoundedRect(_x, _y, _width, _height, _r, _argb);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void imguiDrawRect(float _x, float _y, float _width, float _height, uint32_t _argb)
|
|
|
|
|
-{
|
|
|
|
|
- s_imgui.drawRect(_x, _y, _width, _height, _argb);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-void imguiBool(const char* _text, bool& _flag, bool _enabled)
|
|
|
|
|
-{
|
|
|
|
|
- if (imguiCheck(_text, _flag, _enabled) )
|
|
|
|
|
- {
|
|
|
|
|
- _flag = !_flag;
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
void imguiColorWheel(float _rgb[3], bool _respectIndentation, bool _enabled)
|
|
void imguiColorWheel(float _rgb[3], bool _respectIndentation, bool _enabled)
|
|
|
{
|
|
{
|
|
|
s_imgui.colorWheelWidget(_rgb, _respectIndentation, _enabled);
|
|
s_imgui.colorWheelWidget(_rgb, _respectIndentation, _enabled);
|
|
@@ -3089,11 +3088,6 @@ void imguiImageChannel(bgfx::TextureHandle _image, uint8_t _channel, float _lod,
|
|
|
s_imgui.imageChannel(_image, _channel, _lod, _width, _aspect, _align);
|
|
s_imgui.imageChannel(_image, _channel, _lod, _width, _aspect, _align);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool imguiMouseOverArea()
|
|
|
|
|
-{
|
|
|
|
|
- return s_imgui.m_insideArea;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
float imguiGetTextLength(const char* _text, ImguiFontHandle _handle)
|
|
float imguiGetTextLength(const char* _text, ImguiFontHandle _handle)
|
|
|
{
|
|
{
|
|
|
#if !USE_NANOVG_FONT
|
|
#if !USE_NANOVG_FONT
|
|
@@ -3103,3 +3097,8 @@ float imguiGetTextLength(const char* _text, ImguiFontHandle _handle)
|
|
|
return 0.0f;
|
|
return 0.0f;
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+bool imguiMouseOverArea()
|
|
|
|
|
+{
|
|
|
|
|
+ return s_imgui.m_insideArea;
|
|
|
|
|
+}
|