MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / LogTextV

Function LogTextV

ImGUI GLFW Tutorial/imgui/imgui.cpp:10070–10082  ·  view source on GitHub ↗

Pass text data straight to log (without being displayed)

Source from the content-addressed store, hash-verified

10068
10069// Pass text data straight to log (without being displayed)
10070static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args)
10071{
10072 if (g.LogFile)
10073 {
10074 g.LogBuffer.Buf.resize(0);
10075 g.LogBuffer.appendfv(fmt, args);
10076 ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile);
10077 }
10078 else
10079 {
10080 g.LogBuffer.appendfv(fmt, args);
10081 }
10082}
10083
10084void ImGui::LogText(const char* fmt, ...)
10085{

Callers 2

LogTextMethod · 0.70
LogTextVMethod · 0.70

Calls 4

ImFileWriteFunction · 0.70
appendfvMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected