From 765df313e065f8401319c68ba70cd41b0bc34c9d Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 12 May 2021 13:23:56 -0700 Subject: Start to work on actually rendering the node graph --- core/src/UI/UI.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'core/src/UI/UI.hpp') diff --git a/core/src/UI/UI.hpp b/core/src/UI/UI.hpp index 9e97118..cce0e00 100644 --- a/core/src/UI/UI.hpp +++ b/core/src/UI/UI.hpp @@ -18,6 +18,19 @@ void ErrorMessage(const char* fmt, ...); void WarningIcon(); void WarningMessage(const char* fmt, ...); +enum class IconType +{ + Flow, + Circle, + Square, + Grid, + RoundSquare, + Diamond, +}; + +void DrawIcon(ImDrawList* drawList, const ImVec2& a, const ImVec2& b, IconType type, bool filled, ImU32 color, ImU32 innerColor); +void Icon(const ImVec2& size, IconType type, bool filled, const ImVec4& color = ImVec4(1, 1, 1, 1), const ImVec4& innerColor = ImVec4(0, 0, 0, 0)); + } // namespace ImGui namespace UI { -- cgit v1.2.3-70-g09d2