MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / AddImage

Method AddImage

extern/imgui/imgui_draw.cpp:1610–1624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608}
1609
1610void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col)
1611{
1612 if ((col & IM_COL32_A_MASK) == 0)
1613 return;
1614
1615 const bool push_texture_id = user_texture_id != _CmdHeader.TextureId;
1616 if (push_texture_id)
1617 PushTextureID(user_texture_id);
1618
1619 PrimReserve(6, 4);
1620 PrimRectUV(p_min, p_max, uv_min, uv_max, col);
1621
1622 if (push_texture_id)
1623 PopTextureID();
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{

Callers 3

RenderMouseCursorMethod · 0.80
ImageMethod · 0.80
ImageButtonExMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected