some work

This commit is contained in:
sonoro1234
2018-05-03 16:38:32 +02:00
parent 06a5331b9c
commit 7b03588b3a
6 changed files with 1596 additions and 1480 deletions

View File

@@ -1,5 +1,6 @@
#include "../imgui/imgui.h"
//#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
#include "cimgui.h"
// to use placement new
@@ -7,3 +8,21 @@
#include "../imgui/imgui_internal.h"
#include "auto_funcs.cpp"
CIMGUI_API void igLogText(CONST char *fmt, ...)
{
char buffer[256];
va_list args;
va_start(args, fmt);
vsnprintf(buffer, 256, fmt, args);
va_end(args);
ImGui::LogText("%s", buffer);
}
CIMGUI_API void ImGuiTextBuffer_appendf(struct ImGuiTextBuffer *buffer, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
buffer->appendfv(fmt, args);
va_end(args);
}