MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / FormatTextureRefForDebugDisplay

Function FormatTextureRefForDebugDisplay

include/imgui/imgui.cpp:16303–16311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16301}
16302
16303static const char* FormatTextureRefForDebugDisplay(char* buf, int buf_size, ImTextureRef tex_ref)
16304{
16305 char* buf_p = buf;
16306 char* buf_end = buf + buf_size;
16307 if (tex_ref._TexData != NULL)
16308 buf_p += ImFormatString(buf_p, buf_end - buf_p, "#%03d: ", tex_ref._TexData->UniqueID);
16309 ImFormatString(buf_p, buf_end - buf_p, "0x%X", ImGui::DebugTextureIDToU64(tex_ref.GetTexID()));
16310 return buf;
16311}
16312
16313#ifdef IMGUI_ENABLE_FREETYPE
16314namespace ImGuiFreeType { IMGUI_API const ImFontLoader* GetFontLoader(); IMGUI_API bool DebugEditFontLoaderFlags(unsigned int* p_font_builder_flags); }

Callers 2

DebugNodeTextureMethod · 0.85
DebugNodeDrawListMethod · 0.85

Calls 2

ImFormatStringFunction · 0.85
GetTexIDMethod · 0.45

Tested by

no test coverage detected