| 1624 | } |
| 1625 | |
| 1626 | void ImDrawList::AddImageQuad(ImTextureID user_texture_id, const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, const ImVec2& uv4, ImU32 col) |
| 1627 | { |
| 1628 | if ((col & IM_COL32_A_MASK) == 0) |
| 1629 | return; |
| 1630 | |
| 1631 | const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; |
| 1632 | if (push_texture_id) |
| 1633 | PushTextureID(user_texture_id); |
| 1634 | |
| 1635 | PrimReserve(6, 4); |
| 1636 | PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); |
| 1637 | |
| 1638 | if (push_texture_id) |
| 1639 | PopTextureID(); |
| 1640 | } |
| 1641 | |
| 1642 | void ImDrawList::AddImageRounded(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) |
| 1643 | { |
nothing calls this directly
no outgoing calls
no test coverage detected