MCPcopy Create free account
hub / github.com/cinder/Cinder / FormatTextureRefForDebugDisplay

Function FormatTextureRefForDebugDisplay

src/imgui/imgui.cpp:15974–15980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15972}
15973
15974static const char* FormatTextureRefForDebugDisplay(char* buf, int buf_size, ImTextureRef tex_ref)
15975{
15976 char* buf_end = buf + buf_size;
15977 if (tex_ref._TexData != NULL)
15978 buf += ImFormatString(buf, buf_end - buf, "#%03d: ", tex_ref._TexData->UniqueID);
15979 return FormatTextureIDForDebugDisplay(buf, (int)(buf_end - buf), tex_ref.GetTexID()); // Calling TexRef::GetTexID() to avoid assert of cmd->GetTexID()
15980}
15981
15982#ifdef IMGUI_ENABLE_FREETYPE
15983namespace 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 3

ImFormatStringFunction · 0.85
GetTexIDMethod · 0.45

Tested by

no test coverage detected