MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / AddImageQuad

Method AddImageQuad

plugins/Cardinal/src/DearImGui/imgui_draw.cpp:1626–1640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624}
1625
1626void 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
1642void 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{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected