public static void Button(string text, int width, int height, Color color) { ImGui.PushStyleColor(ImGuiCol.Button, (uint)color); ImGui.Button(text, new Vector2(width, height)); ImGui.PopStyleColor(); }
public static bool ColorEdit3(string label, ref Color color) { var value = color.ToVector3(); var ret = ImGui.ColorEdit3(label, ref value); color = Color.FromVector3(value); return(ret); }