2018-05-07 10:27:55 +02:00
|
|
|
|
2018-09-02 17:20:46 +02:00
|
|
|
#include "./imgui/imgui.h"
|
2018-05-07 10:27:55 +02:00
|
|
|
#include "cimgui.h"
|
|
|
|
|
2018-09-02 17:20:46 +02:00
|
|
|
#include "./imgui/imgui_internal.h"
|
2018-05-07 10:27:55 +02:00
|
|
|
|
|
|
|
#include "auto_funcs.cpp"
|
|
|
|
|
2018-09-05 13:45:16 +02:00
|
|
|
|
2018-05-07 10:27:55 +02:00
|
|
|
/////////////////////////////manual written functions
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
CIMGUI_API void ImFontConfig_DefaultConstructor(ImFontConfig *config)
|
|
|
|
{
|
|
|
|
*config = ImFontConfig();
|
|
|
|
}
|
2018-06-16 17:49:16 +02:00
|
|
|
CIMGUI_API float igGET_FLT_MAX()
|
|
|
|
{
|
2018-06-20 11:42:19 +02:00
|
|
|
return FLT_MAX;
|
2018-06-16 17:49:16 +02:00
|
|
|
}
|
2018-10-04 11:22:00 +02:00
|
|
|
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float *out_h,float *out_s,float *out_v)
|
|
|
|
{
|
|
|
|
ImGui::ColorConvertRGBtoHSV(r,g,b,*out_h,*out_s,*out_v);
|
|
|
|
}
|
|
|
|
CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float *out_r,float *out_g,float *out_b)
|
|
|
|
{
|
|
|
|
ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
|
|
|
|
}
|