MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / AddImageQuad

Method AddImageQuad

imgui_tiny_app/imgui/imgui_draw.cpp:1764–1778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1762}
1763
1764void 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)
1765{
1766 if ((col & IM_COL32_A_MASK) == 0)
1767 return;
1768
1769 const bool push_texture_id = tex_ref != _CmdHeader.TexRef;
1770 if (push_texture_id)
1771 PushTexture(tex_ref);
1772
1773 PrimReserve(6, 4);
1774 PrimQuadUV(p1, p2, p3, p4, uv1, uv2, uv3, uv4, col);
1775
1776 if (push_texture_id)
1777 PopTexture();
1778}
1779
1780void 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)
1781{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected