MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / DataTypeFormatString

Function DataTypeFormatString

examples/ThirdPartyLibs/imgui/imgui.cpp:8566–8572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8564}
8565
8566static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, const char* display_format, char* buf, int buf_size)
8567{
8568 if (data_type == ImGuiDataType_Int)
8569 ImFormatString(buf, buf_size, display_format, *(int*)data_ptr);
8570 else if (data_type == ImGuiDataType_Float)
8571 ImFormatString(buf, buf_size, display_format, *(float*)data_ptr);
8572}
8573
8574static inline void DataTypeFormatString(ImGuiDataType data_type, void* data_ptr, int decimal_precision, char* buf, int buf_size)
8575{

Callers 2

InputScalarExMethod · 0.85

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected