Pass text data straight to log (without being displayed)
| 12049 | |
| 12050 | // Pass text data straight to log (without being displayed) |
| 12051 | static inline void LogTextV(ImGuiContext& g, const char* fmt, va_list args) |
| 12052 | { |
| 12053 | if (g.LogFile) |
| 12054 | { |
| 12055 | g.LogBuffer.Buf.resize(0); |
| 12056 | g.LogBuffer.appendfv(fmt, args); |
| 12057 | ImFileWrite(g.LogBuffer.c_str(), sizeof(char), (ImU64)g.LogBuffer.size(), g.LogFile); |
| 12058 | } |
| 12059 | else |
| 12060 | { |
| 12061 | g.LogBuffer.appendfv(fmt, args); |
| 12062 | } |
| 12063 | } |
| 12064 | |
| 12065 | void ImGui::LogText(const char* fmt, ...) |
| 12066 | { |