MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / AddImage

Method AddImage

lib/imgui/imgui_draw.cpp:1232–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232void ImDrawList::AddImage(ImTextureID user_texture_id, const ImVec2& p_min, const ImVec2& p_max, const ImVec2& uv_min, const ImVec2& uv_max, ImU32 col)
1233{
1234 if ((col & IM_COL32_A_MASK) == 0)
1235 return;
1236
1237 const bool push_texture_id = _TextureIdStack.empty() || user_texture_id != _TextureIdStack.back();
1238 if (push_texture_id)
1239 PushTextureID(user_texture_id);
1240
1241 PrimReserve(6, 4);
1242 PrimRectUV(p_min, p_max, uv_min, uv_max, col);
1243
1244 if (push_texture_id)
1245 PopTextureID();
1246}
1247
1248void 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)
1249{

Callers 3

RenderMouseCursorMethod · 0.80
ImageMethod · 0.80
ImageButtonMethod · 0.80

Calls 2

emptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected