| 1705 | } |
| 1706 | |
| 1707 | void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col) |
| 1708 | { |
| 1709 | if ((col & IM_COL32_A_MASK) == 0) |
| 1710 | return; |
| 1711 | |
| 1712 | const bool push_texture_id = user_texture_id != _CmdHeader.TextureId; |
| 1713 | if (push_texture_id) |
| 1714 | PushTextureID(user_texture_id); |
| 1715 | |
| 1716 | PrimReserve(6, 4); |
| 1717 | PrimRectUV(p_min, p_max, uv_min, uv_max, col); |
| 1718 | |
| 1719 | if (push_texture_id) |
| 1720 | PopTextureID(); |
| 1721 | } |
| 1722 | |
| 1723 | 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) |
| 1724 | { |
no outgoing calls
no test coverage detected