mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
generation with non const ref to pointer
This commit is contained in:
21
cimgui.cpp
21
cimgui.cpp
@@ -1369,6 +1369,14 @@ CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in)
|
||||
{
|
||||
return ImGui::ColorConvertFloat4ToU32(in);
|
||||
}
|
||||
CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v)
|
||||
{
|
||||
return 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)
|
||||
{
|
||||
return ImGui::ColorConvertHSVtoRGB(h,s,v,*out_r,*out_g,*out_b);
|
||||
}
|
||||
CIMGUI_API int igGetKeyIndex(ImGuiKey imgui_key)
|
||||
{
|
||||
return ImGui::GetKeyIndex(imgui_key);
|
||||
@@ -2653,9 +2661,9 @@ CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec
|
||||
{
|
||||
*pOut = ImTriangleClosestPoint(a,b,c,p);
|
||||
}
|
||||
CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float out_u,float out_v,float out_w)
|
||||
CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w)
|
||||
{
|
||||
return ImTriangleBarycentricCoords(a,b,c,p,out_u,out_v,out_w);
|
||||
return ImTriangleBarycentricCoords(a,b,c,p,*out_u,*out_v,*out_w);
|
||||
}
|
||||
CIMGUI_API float igImTriangleArea(const ImVec2 a,const ImVec2 b,const ImVec2 c)
|
||||
{
|
||||
@@ -4167,14 +4175,7 @@ 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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user