| 22094 | } |
| 22095 | |
| 22096 | static const char* FormatTextureRefForDebugDisplay(char* buf, int buf_size, ImTextureRef tex_ref) |
| 22097 | { |
| 22098 | char* buf_p = buf; |
| 22099 | char* buf_end = buf + buf_size; |
| 22100 | if (tex_ref._TexData != NULL) |
| 22101 | buf_p += ImFormatString(buf_p, buf_end - buf_p, "#%03d: ", tex_ref._TexData->UniqueID); |
| 22102 | ImFormatString(buf_p, buf_end - buf_p, "0x%X", ImGui::DebugTextureIDToU64(tex_ref.GetTexID())); |
| 22103 | return buf; |
| 22104 | } |
| 22105 | |
| 22106 | #ifdef IMGUI_ENABLE_FREETYPE |
| 22107 | namespace ImGuiFreeType { IMGUI_API const ImFontLoader* GetFontLoader(); IMGUI_API bool DebugEditFontLoaderFlags(unsigned int* p_font_builder_flags); } |
no test coverage detected