mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
62 lines
1.3 KiB
C++
62 lines
1.3 KiB
C++
|
|
#include "./imgui/imgui.h"
|
|
#include "./imgui/imgui_internal.h"
|
|
#include "cimgui.h"
|
|
|
|
|
|
|
|
#include "auto_funcs.cpp"
|
|
|
|
|
|
/////////////////////////////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 float igGET_FLT_MAX()
|
|
{
|
|
return FLT_MAX;
|
|
}
|
|
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);
|
|
}
|
|
|
|
CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create()
|
|
{
|
|
return IM_NEW(ImVector<ImWchar>) ();
|
|
}
|
|
|
|
CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self)
|
|
{
|
|
IM_DELETE(self);
|
|
}
|
|
|
|
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>();
|
|
}
|
|
|