Files
cimgui/generator/cimgui_template.cpp

56 lines
1.2 KiB
C++
Raw Normal View History

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-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);
}
2018-06-16 17:49:16 +02:00
CIMGUI_API float igGET_FLT_MAX()
{
return FLT_MAX;
2018-06-16 17:49:16 +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);
}
2018-10-17 20:08:40 +02:00
CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create()
{
return IM_NEW(ImVector<ImWchar>) ();
}
2019-02-14 13:05:49 +01:00
2018-10-17 20:08:40 +02:00
CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p)
{
IM_PLACEMENT_NEW(p) ImVector<ImWchar>();
}
CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p)
{
p->~ImVector<ImWchar>();
}