| 1771 | } |
| 1772 | |
| 1773 | void ImDrawList::AddImageQuad(ImTextureRef tex_ref, 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) |
| 1774 | { |
| 1775 | if ((col & IM_COL32_A_MASK) == 0) |
| 1776 | return; |
| 1777 | |
| 1778 | const bool push_texture_id = tex_ref != _CmdHeader.TexRef; |
| 1779 | if (push_texture_id) |
| 1780 | PushTexture(tex_ref); |
| 1781 | |
| 1782 | PrimReserve(6, 4); |
| 1783 | PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col); |
| 1784 | |
| 1785 | if (push_texture_id) |
| 1786 | PopTexture(); |
| 1787 | } |
| 1788 | |
| 1789 | void ImDrawList::AddImageRounded(ImTextureRef tex_ref, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col, float rounding, ImDrawFlags flags) |
| 1790 | { |
nothing calls this directly
no outgoing calls
no test coverage detected