p_min = upper-left, p_max = lower-right
| 1410 | |
| 1411 | // p_min = upper-left, p_max = lower-right |
| 1412 | void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left) |
| 1413 | { |
| 1414 | if (((col_upr_left | col_upr_right | col_bot_right | col_bot_left) & IM_COL32_A_MASK) == 0) |
| 1415 | return; |
| 1416 | |
| 1417 | const ImVec2 uv = _Data->TexUvWhitePixel; |
| 1418 | PrimReserve(6, 4); |
| 1419 | PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 1)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); |
| 1420 | PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 2)); PrimWriteIdx((ImDrawIdx)(_VtxCurrentIdx + 3)); |
| 1421 | PrimWriteVtx(p_min, uv, col_upr_left); |
| 1422 | PrimWriteVtx(ImVec2(p_max.x, p_min.y), uv, col_upr_right); |
| 1423 | PrimWriteVtx(p_max, uv, col_bot_right); |
| 1424 | PrimWriteVtx(ImVec2(p_min.x, p_max.y), uv, col_bot_left); |
| 1425 | } |
| 1426 | |
| 1427 | void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness) |
| 1428 | { |