|
9 | 9 | #if defined(IMGUI_VERSION_NUM) |
10 | 10 |
|
11 | 11 | // Check that the 'ImTextureID' type has the same size as 'reshade::api::resource_view' |
12 | | -static_assert(sizeof(ImTextureID) == 8, "missing \"#define ImTextureID unsigned long long\" before \"#include <imgui.h>\""); |
| 12 | +static_assert(sizeof(ImTextureID) == 8, "missing \"#define ImTextureID ImU64\" before \"#include <imgui.h>\""); |
13 | 13 |
|
14 | 14 | struct imgui_function_table |
15 | 15 | { |
@@ -268,9 +268,9 @@ struct imgui_function_table |
268 | 268 | void(*EndTabItem)(); |
269 | 269 | bool(*TabItemButton)(const char* label, ImGuiTabItemFlags flags); |
270 | 270 | void(*SetTabItemClosed)(const char* tab_or_docked_window_label); |
271 | | - ImGuiID(*DockSpace)(ImGuiID id, const ImVec2& size, int flags, const struct ImGuiWindowClass* window_class); |
| 271 | + ImGuiID(*DockSpace)(ImGuiID id, const ImVec2& size, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class); |
272 | 272 | void(*SetNextWindowDockID)(ImGuiID dock_id, ImGuiCond cond); |
273 | | - void(*SetNextWindowClass)(const struct ImGuiWindowClass* window_class); |
| 273 | + void(*SetNextWindowClass)(const ImGuiWindowClass* window_class); |
274 | 274 | ImGuiID(*GetWindowDockID)(); |
275 | 275 | bool(*IsWindowDocked)(); |
276 | 276 | bool(*BeginDragDropSource)(ImGuiDragDropFlags flags); |
@@ -697,9 +697,9 @@ namespace ImGui |
697 | 697 | inline void EndTabItem() { imgui_function_table_instance()->EndTabItem(); } |
698 | 698 | inline bool TabItemButton(const char* label, ImGuiTabItemFlags flags) { return imgui_function_table_instance()->TabItemButton(label, flags); } |
699 | 699 | inline void SetTabItemClosed(const char* tab_or_docked_window_label) { imgui_function_table_instance()->SetTabItemClosed(tab_or_docked_window_label); } |
700 | | - inline ImGuiID DockSpace(ImGuiID id, const ImVec2& size, int flags, const struct ImGuiWindowClass* window_class) { return imgui_function_table_instance()->DockSpace(id, size, flags, window_class); } |
| 700 | + inline ImGuiID DockSpace(ImGuiID id, const ImVec2& size, ImGuiDockNodeFlags flags, const ImGuiWindowClass* window_class) { return imgui_function_table_instance()->DockSpace(id, size, flags, window_class); } |
701 | 701 | inline void SetNextWindowDockID(ImGuiID dock_id, ImGuiCond cond) { imgui_function_table_instance()->SetNextWindowDockID(dock_id, cond); } |
702 | | - inline void SetNextWindowClass(const struct ImGuiWindowClass* window_class) { imgui_function_table_instance()->SetNextWindowClass(window_class); } |
| 702 | + inline void SetNextWindowClass(const ImGuiWindowClass* window_class) { imgui_function_table_instance()->SetNextWindowClass(window_class); } |
703 | 703 | inline ImGuiID GetWindowDockID() { return imgui_function_table_instance()->GetWindowDockID(); } |
704 | 704 | inline bool IsWindowDocked() { return imgui_function_table_instance()->IsWindowDocked(); } |
705 | 705 | inline bool BeginDragDropSource(ImGuiDragDropFlags flags) { return imgui_function_table_instance()->BeginDragDropSource(flags); } |
|
0 commit comments