|
|
@ -2052,6 +2052,7 @@ struct ImDrawList
|
|
|
|
// Primitives
|
|
|
|
// Primitives
|
|
|
|
// - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners.
|
|
|
|
// - For rectangular primitives, "p_min" and "p_max" represent the upper-left and lower-right corners.
|
|
|
|
// - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred).
|
|
|
|
// - For circle primitives, use "num_segments == 0" to automatically calculate tessellation (preferred).
|
|
|
|
|
|
|
|
// In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12.
|
|
|
|
// In future versions we will use textures to provide cheaper and higher-quality circles.
|
|
|
|
// In future versions we will use textures to provide cheaper and higher-quality circles.
|
|
|
|
// Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides.
|
|
|
|
// Use AddNgon() and AddNgonFilled() functions if you need to guaranteed a specific number of sides.
|
|
|
|
IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness = 1.0f);
|
|
|
@ -2062,8 +2063,8 @@ struct ImDrawList
|
|
|
|
IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col);
|
|
|
|
IMGUI_API void AddQuadFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col);
|
|
|
|
IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col);
|
|
|
|
IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col);
|
|
|
|
IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 12, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 12);
|
|
|
|
IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0);
|
|
|
|
IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f);
|
|
|
|
IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments);
|
|
|
|
IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments);
|
|
|
|
IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL);
|
|
|
|
IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL);
|
|
|
|