1#include "ImGuiShapes.h"
3#define IMGUI_DEFINE_MATH_OPERATORS
4#include "imgui/imgui_internal.h"
8void ImGui::DrawCircle(
float radius, ImU32 color,
float segments,
float thickness)
10 ImDrawList *list = ImGui::GetWindowDrawList();
11 ImVec2 pos = ImGui::GetCursorPos() + ImGui::GetWindowPos();
12 list->AddCircle(ImVec2(pos.x + radius, pos.y + radius), radius, color, segments, thickness);
16void ImGui::DrawFilledCircle(
float radius, ImU32 color,
float segments)
18 ImDrawList *list = ImGui::GetWindowDrawList();
19 ImVec2 pos = ImGui::GetCursorPos() + ImGui::GetWindowPos();
20 list->AddCircleFilled(ImVec2(pos.x + radius, pos.y + radius), radius, color, segments);
24void ImGui::DrawRect(ImVec2 size, ImU32 color,
float rounding,
float thickness)
26 ImDrawList *list = ImGui::GetWindowDrawList();
27 ImVec2 pos = ImGui::GetCursorPos() + ImGui::GetWindowPos();
28 list->AddRect(pos, pos + size, color, rounding, 0, thickness);
32void ImGui::DrawFilledRect(ImVec2 size, ImU32 color,
float rounding)
34 ImDrawList *list = ImGui::GetWindowDrawList();
35 ImVec2 pos = ImGui::GetCursorPos() + ImGui::GetWindowPos();
36 list->AddRectFilled(pos, pos + size, color, rounding, 0);