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

Function CanMergeDrawCommands

lib/imgui/imgui_draw.cpp:1343–1346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343static inline bool CanMergeDrawCommands(ImDrawCmd* a, ImDrawCmd* b)
1344{
1345 return memcmp(&a->ClipRect, &b->ClipRect, sizeof(a->ClipRect)) == 0 && a->TextureId == b->TextureId && a->VtxOffset == b->VtxOffset && !a->UserCallback && !b->UserCallback;
1346}
1347
1348void ImDrawListSplitter::Merge(ImDrawList* draw_list)
1349{

Callers 1

MergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected