@ -1837,6 +1837,7 @@ struct ImDrawListSplitter
enum ImDrawCornerFlags_
{
ImDrawCornerFlags_None = 0 ,
ImDrawCornerFlags_TopLeft = 1 < < 0 , // 0x1
ImDrawCornerFlags_TopRight = 1 < < 1 , // 0x2
ImDrawCornerFlags_BotLeft = 1 < < 2 , // 0x4
@ -1897,8 +1898,8 @@ struct ImDrawList
// Primitives
IMGUI_API void AddLine ( const ImVec2 & a , const ImVec2 & b , ImU32 col , float thickness = 1.0f ) ;
IMGUI_API void AddRect ( const ImVec2 & a , const ImVec2 & b , ImU32 col , float rounding = 0.0f , int rounding_corners_flag s = ImDrawCornerFlags_All , float thickness = 1.0f ) ; // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4-bits corresponding to which corner to round
IMGUI_API void AddRectFilled ( const ImVec2 & a , const ImVec2 & b , ImU32 col , float rounding = 0.0f , int rounding_corners_flag s = ImDrawCornerFlags_All ) ; // a: upper-left, b: lower-right (== upper-left + size)
IMGUI_API void AddRect ( const ImVec2 & a , const ImVec2 & b , ImU32 col , float rounding = 0.0f , ImDrawCornerFlags rounding_corner s = ImDrawCornerFlags_All , float thickness = 1.0f ) ; // a: upper-left, b: lower-right (== upper-left + size), rounding_corners_flags: 4-bits corresponding to which corner to round
IMGUI_API void AddRectFilled ( const ImVec2 & a , const ImVec2 & b , ImU32 col , float rounding = 0.0f , ImDrawCornerFlags rounding_corner s = ImDrawCornerFlags_All ) ; // a: upper-left, b: lower-right (== upper-left + size)
IMGUI_API void AddRectFilledMultiColor ( const ImVec2 & a , const ImVec2 & b , ImU32 col_upr_left , ImU32 col_upr_right , ImU32 col_bot_right , ImU32 col_bot_left ) ;
IMGUI_API void AddQuad ( const ImVec2 & a , const ImVec2 & b , const ImVec2 & c , const ImVec2 & d , ImU32 col , float thickness = 1.0f ) ;
IMGUI_API void AddQuadFilled ( const ImVec2 & a , const ImVec2 & b , const ImVec2 & c , const ImVec2 & d , ImU32 col ) ;
@ -1910,7 +1911,7 @@ struct ImDrawList
IMGUI_API void AddText ( const ImFont * font , float font_size , const ImVec2 & pos , ImU32 col , const char * text_begin , const char * text_end = NULL , float wrap_width = 0.0f , const ImVec4 * cpu_fine_clip_rect = NULL ) ;
IMGUI_API void AddImage ( ImTextureID user_texture_id , const ImVec2 & a , const ImVec2 & b , const ImVec2 & uv_a = ImVec2 ( 0 , 0 ) , const ImVec2 & uv_b = ImVec2 ( 1 , 1 ) , ImU32 col = IM_COL32_WHITE ) ;
IMGUI_API void AddImageQuad ( ImTextureID user_texture_id , const ImVec2 & a , const ImVec2 & b , const ImVec2 & c , const ImVec2 & d , const ImVec2 & uv_a = ImVec2 ( 0 , 0 ) , const ImVec2 & uv_b = ImVec2 ( 1 , 0 ) , const ImVec2 & uv_c = ImVec2 ( 1 , 1 ) , const ImVec2 & uv_d = ImVec2 ( 0 , 1 ) , ImU32 col = IM_COL32_WHITE ) ;
IMGUI_API void AddImageRounded ( ImTextureID user_texture_id , const ImVec2 & a , const ImVec2 & b , const ImVec2 & uv_a , const ImVec2 & uv_b , ImU32 col , float rounding , int rounding_corners = ImDrawCornerFlags_All ) ;
IMGUI_API void AddImageRounded ( ImTextureID user_texture_id , const ImVec2 & a , const ImVec2 & b , const ImVec2 & uv_a , const ImVec2 & uv_b , ImU32 col , float rounding , ImDrawCornerFlags rounding_corners = ImDrawCornerFlags_All ) ;
IMGUI_API void AddPolyline ( const ImVec2 * points , int num_points , ImU32 col , bool closed , float thickness ) ;
IMGUI_API void AddConvexPolyFilled ( const ImVec2 * points , int num_points , ImU32 col ) ; // Note: Anti-aliased filling requires points to be in clockwise order.
IMGUI_API void AddBezierCurve ( const ImVec2 & pos0 , const ImVec2 & cp0 , const ImVec2 & cp1 , const ImVec2 & pos1 , ImU32 col , float thickness , int num_segments = 0 ) ;
@ -1924,7 +1925,7 @@ struct ImDrawList
IMGUI_API void PathArcTo ( const ImVec2 & centre , float radius , float a_min , float a_max , int num_segments = 10 ) ;
IMGUI_API void PathArcToFast ( const ImVec2 & centre , float radius , int a_min_of_12 , int a_max_of_12 ) ; // Use precomputed angles for a 12 steps circle
IMGUI_API void PathBezierCurveTo ( const ImVec2 & p1 , const ImVec2 & p2 , const ImVec2 & p3 , int num_segments = 0 ) ;
IMGUI_API void PathRect ( const ImVec2 & rect_min , const ImVec2 & rect_max , float rounding = 0.0f , int rounding_corners_flag s = ImDrawCornerFlags_All ) ;
IMGUI_API void PathRect ( const ImVec2 & rect_min , const ImVec2 & rect_max , float rounding = 0.0f , ImDrawCornerFlags rounding_corner s = ImDrawCornerFlags_All ) ;
// Advanced
IMGUI_API void AddCallback ( ImDrawCallback callback , void * callback_data ) ; // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles.