Lines Matching refs:points_count

669 void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, bool closed, …  in AddPolyline()  argument
671 if (points_count < 2) in AddPolyline()
676 int count = points_count; in AddPolyline()
678 count = points_count-1; in AddPolyline()
688 const int vtx_count = thick_line ? points_count*4 : points_count*3; in AddPolyline()
692 …ImVec2* temp_normals = (ImVec2*)alloca(points_count * (thick_line ? 5 : 3) * sizeof(ImVec2)); //-V… in AddPolyline()
693 ImVec2* temp_points = temp_normals + points_count; in AddPolyline()
697 const int i2 = (i1+1) == points_count ? 0 : i1+1; in AddPolyline()
705 temp_normals[points_count-1] = temp_normals[points_count-2]; in AddPolyline()
713 …temp_points[(points_count-1)*2+0] = points[points_count-1] + temp_normals[points_count-1] * AA_SIZ… in AddPolyline()
714 …temp_points[(points_count-1)*2+1] = points[points_count-1] - temp_normals[points_count-1] * AA_SIZ… in AddPolyline()
721 const int i2 = (i1+1) == points_count ? 0 : i1+1; in AddPolyline()
722 unsigned int idx2 = (i1+1) == points_count ? _VtxCurrentIdx : idx1+3; in AddPolyline()
749 for (int i = 0; i < points_count; i++) in AddPolyline()
766 …temp_points[(points_count-1)*4+0] = points[points_count-1] + temp_normals[points_count-1] * (half_… in AddPolyline()
767 …temp_points[(points_count-1)*4+1] = points[points_count-1] + temp_normals[points_count-1] * (half_… in AddPolyline()
768 …temp_points[(points_count-1)*4+2] = points[points_count-1] - temp_normals[points_count-1] * (half_… in AddPolyline()
769 …temp_points[(points_count-1)*4+3] = points[points_count-1] - temp_normals[points_count-1] * (half_… in AddPolyline()
776 const int i2 = (i1+1) == points_count ? 0 : i1+1; in AddPolyline()
777 unsigned int idx2 = (i1+1) == points_count ? _VtxCurrentIdx : idx1+4; in AddPolyline()
812 for (int i = 0; i < points_count; i++) in AddPolyline()
832 const int i2 = (i1+1) == points_count ? 0 : i1+1; in AddPolyline()
857 void ImDrawList::AddConvexPolyFilled(const ImVec2* points, const int points_count, ImU32 col) in AddConvexPolyFilled() argument
859 if (points_count < 3) in AddConvexPolyFilled()
869 const int idx_count = (points_count-2)*3 + points_count*6; in AddConvexPolyFilled()
870 const int vtx_count = (points_count*2); in AddConvexPolyFilled()
876 for (int i = 2; i < points_count; i++) in AddConvexPolyFilled()
883 ImVec2* temp_normals = (ImVec2*)alloca(points_count * sizeof(ImVec2)); //-V630 in AddConvexPolyFilled()
884 for (int i0 = points_count-1, i1 = 0; i1 < points_count; i0 = i1++) in AddConvexPolyFilled()
895 for (int i0 = points_count-1, i1 = 0; i1 < points_count; i0 = i1++) in AddConvexPolyFilled()
921 const int idx_count = (points_count-2)*3; in AddConvexPolyFilled()
922 const int vtx_count = points_count; in AddConvexPolyFilled()
929 for (int i = 2; i < points_count; i++) in AddConvexPolyFilled()