diff --git a/README.md b/README.md index 0ee553f..c97476b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Most of the functions have wrapper counterparts now, missing stuff is added on a This library is intended as a intermediate layer to be able to use imgui from other languages that can interface with C (like D - see [D-binding](https://github.com/Extrawurst/DerelictImgui)) Notes: -* currently this wrapper is based on version [1.47 of imgui](https://github.com/ocornut/imgui/releases/tag/v1.47) +* currently this wrapper is based on version [1.48 of imgui](https://github.com/ocornut/imgui/releases/tag/v1.48) * does not compile with pure C compiler yet (for writing bindings in languages that are able to use C-ABI it is enough though, see D-bindings) # usage diff --git a/cimgui/cimgui.h b/cimgui/cimgui.h index f2760e4..38f8a3c 100644 --- a/cimgui/cimgui.h +++ b/cimgui/cimgui.h @@ -77,8 +77,8 @@ CIMGUI_API float igGetScrollMaxX(); CIMGUI_API float igGetScrollMaxY(); CIMGUI_API void igSetScrollX(float scroll_x); CIMGUI_API void igSetScrollY(float scroll_y); -CIMGUI_API void igSetScrollHere(float center_y_ratio = 0.5f); -CIMGUI_API void igSetScrollFromPosY(float pos_y, float center_y_ratio = 0.5f); +CIMGUI_API void igSetScrollHere(float center_y_ratio); +CIMGUI_API void igSetScrollFromPosY(float pos_y, float center_y_ratio); CIMGUI_API void igSetKeyboardFocusHere(int offset); CIMGUI_API void igSetStateStorage(ImGuiStorage* tree); CIMGUI_API ImGuiStorage* igGetStateStorage(); @@ -210,12 +210,12 @@ CIMGUI_API bool igDragFloat(CONST char* label, float* v, float v_spe CIMGUI_API bool igDragFloat2(CONST char* label, float v[2], float v_speed, float v_min, float v_max, CONST char* display_format, float power); CIMGUI_API bool igDragFloat3(CONST char* label, float v[3], float v_speed, float v_min, float v_max, CONST char* display_format, float power); CIMGUI_API bool igDragFloat4(CONST char* label, float v[4], float v_speed, float v_min, float v_max, CONST char* display_format, float power); -CIMGUI_API bool igDragFloatRange2(CONST char* label, float* v_current_min, float* v_current_max, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, CONST char* display_format = "%.3f", CONST char* display_format_max = NULL, float power = 1.0f); +CIMGUI_API bool igDragFloatRange2(CONST char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, CONST char* display_format, CONST char* display_format_max, float power); CIMGUI_API bool igDragInt(CONST char* label, int* v, float v_speed, int v_min, int v_max, CONST char* display_format); // If v_max >= v_max we have no bound CIMGUI_API bool igDragInt2(CONST char* label, int v[2], float v_speed, int v_min, int v_max, CONST char* display_format); CIMGUI_API bool igDragInt3(CONST char* label, int v[3], float v_speed, int v_min, int v_max, CONST char* display_format); CIMGUI_API bool igDragInt4(CONST char* label, int v[4], float v_speed, int v_min, int v_max, CONST char* display_format); -CIMGUI_API bool igDragIntRange2(CONST char* label, int* v_current_min, int* v_current_max, float v_speed = 1.0f, int v_min = 0, int v_max = 0, CONST char* display_format = "%.0f", CONST char* display_format_max = NULL); +CIMGUI_API bool igDragIntRange2(CONST char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, CONST char* display_format, CONST char* display_format_max); // Widgets: Input @@ -439,4 +439,4 @@ CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* list, CONST struct Im CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* list, CONST struct ImVec2 pos, CONST struct ImVec2 uv, ImU32 col); CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* list, ImDrawIdx idx); CIMGUI_API void ImDrawList_UpdateClipRect(ImDrawList* list); -CIMGUI_API void ImDrawList_UpdateTextureID(ImDrawList* list); \ No newline at end of file +CIMGUI_API void ImDrawList_UpdateTextureID(ImDrawList* list);