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

Function FormatTextureIDForDebugDisplay

src/imgui/imgui.cpp:15963–15972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15961}
15962
15963static const char* FormatTextureIDForDebugDisplay(char* buf, int buf_size, ImTextureID tex_id)
15964{
15965 union { void* ptr; int integer; } tex_id_opaque;
15966 memcpy(&tex_id_opaque, &tex_id, ImMin(sizeof(void*), sizeof(tex_id)));
15967 if (sizeof(tex_id) >= sizeof(void*))
15968 ImFormatString(buf, buf_size, "0x%p", tex_id_opaque.ptr);
15969 else
15970 ImFormatString(buf, buf_size, "0x%04X", tex_id_opaque.integer);
15971 return buf;
15972}
15973
15974static const char* FormatTextureRefForDebugDisplay(char* buf, int buf_size, ImTextureRef tex_ref)
15975{

Callers 1

Calls 2

ImMinFunction · 0.85
ImFormatStringFunction · 0.85

Tested by

no test coverage detected