dep/imgui: Use stb_sprintf
This commit is contained in:
parent
b8026a038c
commit
5c2fc68755
|
@ -76,7 +76,7 @@
|
||||||
|
|
||||||
//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined)
|
//---- Use stb_sprintf.h for a faster implementation of vsnprintf instead of the one from libc (unless IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS is defined)
|
||||||
// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h.
|
// Compatibility checks of arguments and formats done by clang and GCC will be disabled in order to support the extra formats provided by stb_sprintf.h.
|
||||||
//#define IMGUI_USE_STB_SPRINTF
|
#define IMGUI_USE_STB_SPRINTF
|
||||||
|
|
||||||
//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui)
|
//---- Use FreeType to build and rasterize the font atlas (instead of stb_truetype which is embedded by default in Dear ImGui)
|
||||||
// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided).
|
// Requires FreeType headers to be available in the include path. Requires program to be compiled with 'misc/freetype/imgui_freetype.cpp' (in this repository) + the FreeType library (not provided).
|
||||||
|
|
|
@ -2016,6 +2016,7 @@ const char* ImStrSkipBlank(const char* str)
|
||||||
#ifdef IMGUI_USE_STB_SPRINTF
|
#ifdef IMGUI_USE_STB_SPRINTF
|
||||||
#ifndef IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION
|
#ifndef IMGUI_DISABLE_STB_SPRINTF_IMPLEMENTATION
|
||||||
#define STB_SPRINTF_IMPLEMENTATION
|
#define STB_SPRINTF_IMPLEMENTATION
|
||||||
|
#define STB_SPRINTF_STATIC
|
||||||
#endif
|
#endif
|
||||||
#ifdef IMGUI_STB_SPRINTF_FILENAME
|
#ifdef IMGUI_STB_SPRINTF_FILENAME
|
||||||
#include IMGUI_STB_SPRINTF_FILENAME
|
#include IMGUI_STB_SPRINTF_FILENAME
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue