Add three wrappers

internals
Eric Mellino 8 years ago
parent 6aaffd36ee
commit f1a76b7787
  1. 24
      src/ImGui.NET/ImGui.cs

@ -646,6 +646,25 @@ namespace ImGuiNET
ImGuiNative.igEndChildFrame();
}
public static unsafe void ColorConvertRGBToHSV(float r, float g, float b, out float h, out float s, out float v)
{
float h2, s2, v2;
ImGuiNative.igColorConvertRGBtoHSV(r, g, b, &h2, &s2, &v2);
h = h2;
s = s2;
v = v2;
}
public static unsafe void ColorConvertHSVToRGB(float h, float s, float v, out float r, out float g, out float b)
{
float r2, g2, b2;
ImGuiNative.igColorConvertHSVtoRGB(h, s, v, &r2, &g2, &b2);
r = r2;
g = g2;
b = b2;
}
public static int GetKeyIndex(GuiKey key)
{
//TODO this got exported by later version of cimgui, call ImGuiNative after upgrading
@ -765,6 +784,11 @@ namespace ImGuiNET
return retVal;
}
public static void SetCursorScreenPos(Vector2 pos)
{
ImGuiNative.igSetCursorScreenPos(pos);
}
public static bool BeginChild(string id, bool border = false, WindowFlags flags = 0)
{
return BeginChild(id, new Vector2(0, 0), border, flags);

Loading…
Cancel
Save