MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / UnpackBitVectorToFlatIndexList

Function UnpackBitVectorToFlatIndexList

KBotExt/imgui/imgui_draw.cpp:2379–2389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2377};
2378
2379static void UnpackBitVectorToFlatIndexList(const ImBitVector* in, ImVector<int>* out)
2380{
2381 IM_ASSERT(sizeof(in->Storage.Data[0]) == sizeof(int));
2382 const ImU32* it_begin = in->Storage.begin();
2383 const ImU32* it_end = in->Storage.end();
2384 for (const ImU32* it = it_begin; it < it_end; it++)
2385 if (ImU32 entries_32 = *it)
2386 for (ImU32 bit_n = 0; bit_n < 32; bit_n++)
2387 if (entries_32 & ((ImU32)1 << bit_n))
2388 out->push_back((int)(((it - it_begin) << 5) + bit_n));
2389}
2390
2391static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas)
2392{

Callers 1

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected