MCPcopy Create free account
hub / github.com/clementgallet/libTAS / FormatTextureIDForDebugDisplay

Function FormatTextureIDForDebugDisplay

src/external/imgui/imgui.cpp:14475–14481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14473}
14474
14475static void FormatTextureIDForDebugDisplay(char* buf, int buf_size, ImTextureID tex_id)
14476{
14477 if (sizeof(tex_id) >= sizeof(void*))
14478 ImFormatString(buf, buf_size, "0x%p", (void*)*(intptr_t*)(void*)&tex_id);
14479 else
14480 ImFormatString(buf, buf_size, "0x%04X", *(int*)(void*)&tex_id);
14481}
14482
14483// [DEBUG] Display contents of ImDrawList
14484void ImGui::DebugNodeDrawList(ImGuiWindow* window, ImGuiViewportP* viewport, const ImDrawList* draw_list, const char* label)

Callers 1

DebugNodeDrawListMethod · 0.85

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected