mirror of
https://github.com/cimgui/cimgui.git
synced 2026-05-17 22:41:17 +01:00
Compare commits
12 Commits
8de229087f
...
docking_in
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1261b23193 | ||
|
|
650a427069 | ||
|
|
d24c440621 | ||
|
|
e90e027c82 | ||
|
|
1e3cfe7157 | ||
|
|
0313c558fc | ||
|
|
ad70f13873 | ||
|
|
a444aa6c50 | ||
|
|
fab34e3855 | ||
|
|
467262ef29 | ||
|
|
0e533fd0b7 | ||
|
|
715802490e |
@@ -11,7 +11,7 @@ History:
|
||||
Initially cimgui was developed by Stephan Dilly as hand-written code but lately turned into an auto-generated version by sonoro1234 in order to keep up with imgui more easily (letting the user select the desired branch and commit)
|
||||
|
||||
Notes:
|
||||
* currently this wrapper is based on version [1.92.4 of Dear ImGui with internal api]
|
||||
* currently this wrapper is based on version [1.92.8 of Dear ImGui with internal api]
|
||||
* only functions, structs and enums from imgui.h (an optionally imgui_internal.h) are wrapped.
|
||||
* if you are interested in imgui backends you should look [LuaJIT-ImGui](https://github.com/sonoro1234/LuaJIT-ImGui) project.
|
||||
* All naming is algorithmic except for those names that were coded in cimgui_overloads table (https://github.com/cimgui/cimgui/blob/master/generator/generator.lua#L60). In the official version this table is empty.
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
//this must be equal to that in imgui_impl_vulkan.h
|
||||
#define IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE (1) // Minimum per atlas
|
||||
//#define IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE (1) // Minimum per atlas
|
||||
|
||||
#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
#include <cimgui.h>
|
||||
@@ -214,7 +214,8 @@ static void SetupVulkan(const char** extensions, uint32_t extensions_count)
|
||||
{
|
||||
VkDescriptorPoolSize pool_sizes[] =
|
||||
{
|
||||
{ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE },
|
||||
{ VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, IMGUI_IMPL_VULKAN_MINIMUM_SAMPLED_IMAGE_POOL_SIZE },
|
||||
{ VK_DESCRIPTOR_TYPE_SAMPLER, IMGUI_IMPL_VULKAN_MINIMUM_SAMPLER_POOL_SIZE },
|
||||
};
|
||||
VkDescriptorPoolCreateInfo pool_info = {};
|
||||
pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
|
||||
@@ -281,9 +282,10 @@ static void CleanupVulkan()
|
||||
vkDestroyInstance(g_Instance, g_Allocator);
|
||||
}
|
||||
|
||||
static void CleanupVulkanWindow()
|
||||
static void CleanupVulkanWindow(ImGui_ImplVulkanH_Window* wd)
|
||||
{
|
||||
ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, &g_MainWindowData, g_Allocator);
|
||||
ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, wd, g_Allocator);
|
||||
vkDestroySurfaceKHR(g_Instance, wd->Surface, g_Allocator);
|
||||
}
|
||||
|
||||
static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data)
|
||||
@@ -620,7 +622,7 @@ int main(int argc, char* argv[])
|
||||
ImGui_ImplSDL3_Shutdown();
|
||||
igDestroyContext(NULL);
|
||||
|
||||
CleanupVulkanWindow();
|
||||
CleanupVulkanWindow(&g_MainWindowData);
|
||||
CleanupVulkan();
|
||||
|
||||
SDL_DestroyWindow(window);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#endif
|
||||
|
||||
//this must be equal to that in imgui_impl_vulkan.h
|
||||
#define IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE (1) // Minimum per atlas
|
||||
//#define IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE (1) // Minimum per atlas
|
||||
|
||||
#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
#include "cimgui.h"
|
||||
@@ -218,7 +218,8 @@ static void SetupVulkan(const char** extensions, uint32_t extensions_count)
|
||||
{
|
||||
VkDescriptorPoolSize pool_sizes[] =
|
||||
{
|
||||
{ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE },
|
||||
{ VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, IMGUI_IMPL_VULKAN_MINIMUM_SAMPLED_IMAGE_POOL_SIZE },
|
||||
{ VK_DESCRIPTOR_TYPE_SAMPLER, IMGUI_IMPL_VULKAN_MINIMUM_SAMPLER_POOL_SIZE },
|
||||
};
|
||||
VkDescriptorPoolCreateInfo pool_info = {};
|
||||
pool_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
|
||||
@@ -285,9 +286,10 @@ static void CleanupVulkan()
|
||||
vkDestroyInstance(g_Instance, g_Allocator);
|
||||
}
|
||||
|
||||
static void CleanupVulkanWindow()
|
||||
static void CleanupVulkanWindow(ImGui_ImplVulkanH_Window* wd)
|
||||
{
|
||||
ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, &g_MainWindowData, g_Allocator);
|
||||
ImGui_ImplVulkanH_DestroyWindow(g_Instance, g_Device, wd, g_Allocator);
|
||||
vkDestroySurfaceKHR(g_Instance, wd->Surface, g_Allocator);
|
||||
}
|
||||
|
||||
static void FrameRender(ImGui_ImplVulkanH_Window* wd, ImDrawData* draw_data)
|
||||
@@ -615,7 +617,7 @@ int main(int argc, char* argv[])
|
||||
ImGui_ImplSDL2_Shutdown();
|
||||
igDestroyContext(NULL);
|
||||
|
||||
CleanupVulkanWindow();
|
||||
CleanupVulkanWindow(&g_MainWindowData);
|
||||
CleanupVulkan();
|
||||
|
||||
SDL_DestroyWindow(window);
|
||||
|
||||
106
cimgui.cpp
106
cimgui.cpp
@@ -1,5 +1,5 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.92.6" 19261 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.92.8" 19280 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//with imgui_freetype.h api
|
||||
//docking branch
|
||||
@@ -1139,6 +1139,10 @@ CIMGUI_API void igSetNextItemStorageID(ImGuiID storage_id)
|
||||
{
|
||||
return ImGui::SetNextItemStorageID(storage_id);
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeGetOpen(ImGuiID storage_id)
|
||||
{
|
||||
return ImGui::TreeNodeGetOpen(storage_id);
|
||||
}
|
||||
CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2_c size)
|
||||
{
|
||||
return ImGui::Selectable(label,selected,flags,ConvertToCPP_ImVec2(size));
|
||||
@@ -1758,7 +1762,7 @@ CIMGUI_API void igSetNextItemShortcut(ImGuiKeyChord key_chord,ImGuiInputFlags fl
|
||||
{
|
||||
return ImGui::SetNextItemShortcut(key_chord,flags);
|
||||
}
|
||||
CIMGUI_API void igSetItemKeyOwner_Nil(ImGuiKey key)
|
||||
CIMGUI_API bool igSetItemKeyOwner_Nil(ImGuiKey key)
|
||||
{
|
||||
return ImGui::SetItemKeyOwner(key);
|
||||
}
|
||||
@@ -2459,9 +2463,17 @@ CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2_c p1,const ImVe
|
||||
{
|
||||
return self->AddLine(ConvertToCPP_ImVec2(p1),ConvertToCPP_ImVec2(p2),col,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)
|
||||
CIMGUI_API void ImDrawList_AddLineH(ImDrawList* self,float min_x,float max_x,float y,ImU32 col,float thickness)
|
||||
{
|
||||
return self->AddRect(ConvertToCPP_ImVec2(p_min),ConvertToCPP_ImVec2(p_max),col,rounding,flags,thickness);
|
||||
return self->AddLineH(min_x,max_x,y,col,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddLineV(ImDrawList* self,float x,float min_y,float max_y,ImU32 col,float thickness)
|
||||
{
|
||||
return self->AddLineV(x,min_y,max_y,col,thickness);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col,float rounding,float thickness,ImDrawFlags flags)
|
||||
{
|
||||
return self->AddRect(ConvertToCPP_ImVec2(p_min),ConvertToCPP_ImVec2(p_max),col,rounding,thickness,flags);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col,float rounding,ImDrawFlags flags)
|
||||
{
|
||||
@@ -2527,9 +2539,9 @@ CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2_c p1
|
||||
{
|
||||
return self->AddBezierQuadratic(ConvertToCPP_ImVec2(p1),ConvertToCPP_ImVec2(p2),ConvertToCPP_ImVec2(p3),col,thickness,num_segments);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col,float thickness,ImDrawFlags flags)
|
||||
{
|
||||
return self->AddPolyline(reinterpret_cast<const ImVec2*>(points),num_points,col,flags,thickness);
|
||||
return self->AddPolyline(reinterpret_cast<const ImVec2*>(points),num_points,col,thickness,flags);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col)
|
||||
{
|
||||
@@ -2571,9 +2583,9 @@ CIMGUI_API void ImDrawList_PathFillConcave(ImDrawList* self,ImU32 col)
|
||||
{
|
||||
return self->PathFillConcave(col);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,float thickness,ImDrawFlags flags)
|
||||
{
|
||||
return self->PathStroke(col,flags,thickness);
|
||||
return self->PathStroke(col,thickness,flags);
|
||||
}
|
||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2_c center,float radius,float a_min,float a_max,int num_segments)
|
||||
{
|
||||
@@ -2883,6 +2895,10 @@ CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self)
|
||||
{
|
||||
return self->Clear();
|
||||
}
|
||||
CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self)
|
||||
{
|
||||
return self->ClearFonts();
|
||||
}
|
||||
CIMGUI_API void ImFontAtlas_CompactCache(ImFontAtlas* self)
|
||||
{
|
||||
return self->CompactCache();
|
||||
@@ -2895,10 +2911,6 @@ CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self)
|
||||
{
|
||||
return self->ClearInputData();
|
||||
}
|
||||
CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self)
|
||||
{
|
||||
return self->ClearFonts();
|
||||
}
|
||||
CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self)
|
||||
{
|
||||
return self->ClearTexData();
|
||||
@@ -3015,6 +3027,10 @@ CIMGUI_API ImVec2_c ImGuiViewport_GetWorkCenter(ImGuiViewport* self)
|
||||
{
|
||||
return ConvertFromCPP_ImVec2(self->GetWorkCenter());
|
||||
}
|
||||
CIMGUI_API const char* ImGuiViewport_GetDebugName(ImGuiViewport* self)
|
||||
{
|
||||
return self->GetDebugName();
|
||||
}
|
||||
CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void)
|
||||
{
|
||||
return IM_NEW(ImGuiPlatformIO)();
|
||||
@@ -3602,6 +3618,14 @@ CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect_c r)
|
||||
{
|
||||
return self->Add(ConvertToCPP_ImRect(r));
|
||||
}
|
||||
CIMGUI_API void ImRect_AddX(ImRect* self,float x)
|
||||
{
|
||||
return self->AddX(x);
|
||||
}
|
||||
CIMGUI_API void ImRect_AddY(ImRect* self,float y)
|
||||
{
|
||||
return self->AddY(y);
|
||||
}
|
||||
CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount)
|
||||
{
|
||||
return self->Expand(amount);
|
||||
@@ -3818,6 +3842,10 @@ CIMGUI_API float ImGuiInputTextState_GetPreferredOffsetX(ImGuiInputTextState* se
|
||||
{
|
||||
return self->GetPreferredOffsetX();
|
||||
}
|
||||
CIMGUI_API const char* ImGuiInputTextState_GetText(ImGuiInputTextState* self)
|
||||
{
|
||||
return self->GetText();
|
||||
}
|
||||
CIMGUI_API void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self)
|
||||
{
|
||||
return self->CursorAnimReset();
|
||||
@@ -4818,6 +4846,10 @@ CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2_c size_a
|
||||
{
|
||||
return ImGui::BeginChildEx(name,id,ConvertToCPP_ImVec2(size_arg),child_flags,window_flags);
|
||||
}
|
||||
CIMGUI_API ImGuiWindow* igFindFrontMostVisibleChildWindow(ImGuiWindow* window)
|
||||
{
|
||||
return ImGui::FindFrontMostVisibleChildWindow(window);
|
||||
}
|
||||
CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_window_flags)
|
||||
{
|
||||
return ImGui::BeginPopupEx(id,extra_window_flags);
|
||||
@@ -4874,6 +4906,14 @@ CIMGUI_API ImGuiMouseButton igGetMouseButtonFromPopupFlags(ImGuiPopupFlags flags
|
||||
{
|
||||
return ImGui::GetMouseButtonFromPopupFlags(flags);
|
||||
}
|
||||
CIMGUI_API bool igIsPopupOpenRequestForItem(ImGuiPopupFlags flags,ImGuiID id)
|
||||
{
|
||||
return ImGui::IsPopupOpenRequestForItem(flags,id);
|
||||
}
|
||||
CIMGUI_API bool igIsPopupOpenRequestForWindow(ImGuiPopupFlags flags)
|
||||
{
|
||||
return ImGui::IsPopupOpenRequestForWindow(flags);
|
||||
}
|
||||
CIMGUI_API bool igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags)
|
||||
{
|
||||
return ImGui::BeginTooltipEx(tooltip_flags,extra_window_flags);
|
||||
@@ -5082,7 +5122,7 @@ CIMGUI_API void igSetKeyOwnersForKeyChord(ImGuiKeyChord key,ImGuiID owner_id,ImG
|
||||
{
|
||||
return ImGui::SetKeyOwnersForKeyChord(key,owner_id,flags);
|
||||
}
|
||||
CIMGUI_API void igSetItemKeyOwner_InputFlags(ImGuiKey key,ImGuiInputFlags flags)
|
||||
CIMGUI_API bool igSetItemKeyOwner_InputFlags(ImGuiKey key,ImGuiInputFlags flags)
|
||||
{
|
||||
return ImGui::SetItemKeyOwner(key,flags);
|
||||
}
|
||||
@@ -5318,6 +5358,10 @@ CIMGUI_API void igPopFocusScope()
|
||||
{
|
||||
return ImGui::PopFocusScope();
|
||||
}
|
||||
CIMGUI_API bool igIsInNavFocusRoute(ImGuiID focus_scope_id)
|
||||
{
|
||||
return ImGui::IsInNavFocusRoute(focus_scope_id);
|
||||
}
|
||||
CIMGUI_API ImGuiID igGetCurrentFocusScope()
|
||||
{
|
||||
return ImGui::GetCurrentFocusScope();
|
||||
@@ -5346,9 +5390,9 @@ CIMGUI_API void igRenderDragDropTargetRectForItem(const ImRect_c bb)
|
||||
{
|
||||
return ImGui::RenderDragDropTargetRectForItem(ConvertToCPP_ImRect(bb));
|
||||
}
|
||||
CIMGUI_API void igRenderDragDropTargetRectEx(ImDrawList* draw_list,const ImRect_c bb)
|
||||
CIMGUI_API void igRenderDragDropTargetRectEx(ImDrawList* draw_list,const ImRect_c bb,float rounding)
|
||||
{
|
||||
return ImGui::RenderDragDropTargetRectEx(draw_list,ConvertToCPP_ImRect(bb));
|
||||
return ImGui::RenderDragDropTargetRectEx(draw_list,ConvertToCPP_ImRect(bb),rounding);
|
||||
}
|
||||
CIMGUI_API ImGuiTypingSelectRequest* igGetTypingSelectRequest(ImGuiTypingSelectFlags flags)
|
||||
{
|
||||
@@ -5518,6 +5562,10 @@ CIMGUI_API void igTableUpdateColumnsWeightFromWidth(ImGuiTable* table)
|
||||
{
|
||||
return ImGui::TableUpdateColumnsWeightFromWidth(table);
|
||||
}
|
||||
CIMGUI_API void igTableApplyExternalUnclipRect(ImGuiTable* table,ImRect* rect)
|
||||
{
|
||||
return ImGui::TableApplyExternalUnclipRect(table,*rect);
|
||||
}
|
||||
CIMGUI_API void igTableDrawBorders(ImGuiTable* table)
|
||||
{
|
||||
return ImGui::TableDrawBorders(table);
|
||||
@@ -5610,6 +5658,10 @@ CIMGUI_API void igTableSetColumnDisplayOrder(ImGuiTable* table,int column_n,int
|
||||
{
|
||||
return ImGui::TableSetColumnDisplayOrder(table,column_n,dst_order);
|
||||
}
|
||||
CIMGUI_API void igTableQueueSetColumnDisplayOrder(ImGuiTable* table,int column_n,int dst_order)
|
||||
{
|
||||
return ImGui::TableQueueSetColumnDisplayOrder(table,column_n,dst_order);
|
||||
}
|
||||
CIMGUI_API void igTableRemove(ImGuiTable* table)
|
||||
{
|
||||
return ImGui::TableRemove(table);
|
||||
@@ -5911,6 +5963,10 @@ CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir)
|
||||
{
|
||||
return ImGui::GetWindowResizeBorderID(window,dir);
|
||||
}
|
||||
CIMGUI_API void igExtendHitBoxWhenNearViewportEdge(ImGuiWindow* window,ImRect* bb,float threshold,ImGuiAxis axis)
|
||||
{
|
||||
return ImGui::ExtendHitBoxWhenNearViewportEdge(window,bb,threshold,axis);
|
||||
}
|
||||
CIMGUI_API bool igButtonBehavior(const ImRect_c bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags)
|
||||
{
|
||||
return ImGui::ButtonBehavior(ConvertToCPP_ImRect(bb),id,out_hovered,out_held,flags);
|
||||
@@ -5943,10 +5999,6 @@ CIMGUI_API void igTreePushOverrideID(ImGuiID id)
|
||||
{
|
||||
return ImGui::TreePushOverrideID(id);
|
||||
}
|
||||
CIMGUI_API bool igTreeNodeGetOpen(ImGuiID storage_id)
|
||||
{
|
||||
return ImGui::TreeNodeGetOpen(storage_id);
|
||||
}
|
||||
CIMGUI_API void igTreeNodeSetOpen(ImGuiID storage_id,bool open)
|
||||
{
|
||||
return ImGui::TreeNodeSetOpen(storage_id,open);
|
||||
@@ -5991,9 +6043,9 @@ CIMGUI_API void igInputTextDeactivateHook(ImGuiID id)
|
||||
{
|
||||
return ImGui::InputTextDeactivateHook(id);
|
||||
}
|
||||
CIMGUI_API bool igTempInputText(const ImRect_c bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags)
|
||||
CIMGUI_API bool igTempInputText(const ImRect_c bb,ImGuiID id,const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data)
|
||||
{
|
||||
return ImGui::TempInputText(ConvertToCPP_ImRect(bb),id,label,buf,buf_size,flags);
|
||||
return ImGui::TempInputText(ConvertToCPP_ImRect(bb),id,label,buf,buf_size,flags,callback,user_data);
|
||||
}
|
||||
CIMGUI_API bool igTempInputScalar(const ImRect_c bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max)
|
||||
{
|
||||
@@ -6091,6 +6143,10 @@ CIMGUI_API void igEndErrorTooltip()
|
||||
{
|
||||
return ImGui::EndErrorTooltip();
|
||||
}
|
||||
CIMGUI_API void igDemoMarker(const char* file,int line,const char* section)
|
||||
{
|
||||
return ImGui::DemoMarker(file,line,section);
|
||||
}
|
||||
CIMGUI_API void igDebugAllocHook(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size)
|
||||
{
|
||||
return ImGui::DebugAllocHook(info,frame_count,ptr,size);
|
||||
@@ -6167,9 +6223,9 @@ CIMGUI_API void igDebugNodeFont(ImFont* font)
|
||||
{
|
||||
return ImGui::DebugNodeFont(font);
|
||||
}
|
||||
CIMGUI_API void igDebugNodeFontGlyphesForSrcMask(ImFont* font,ImFontBaked* baked,int src_mask)
|
||||
CIMGUI_API void igDebugNodeFontGlyphsForSrcMask(ImFont* font,ImFontBaked* baked,int src_mask)
|
||||
{
|
||||
return ImGui::DebugNodeFontGlyphesForSrcMask(font,baked,src_mask);
|
||||
return ImGui::DebugNodeFontGlyphsForSrcMask(font,baked,src_mask);
|
||||
}
|
||||
CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph)
|
||||
{
|
||||
@@ -6471,6 +6527,10 @@ CIMGUI_API void igImFontAtlasTextureBlockQueueUpload(ImFontAtlas* atlas,ImTextur
|
||||
{
|
||||
return ImFontAtlasTextureBlockQueueUpload(atlas,tex,x,y,w,h);
|
||||
}
|
||||
CIMGUI_API void igImTextureDataQueueUpload(ImTextureData* tex,int x,int y,int w,int h)
|
||||
{
|
||||
return ImTextureDataQueueUpload(tex,x,y,w,h);
|
||||
}
|
||||
CIMGUI_API int igImTextureDataGetFormatBytesPerPixel(ImTextureFormat format)
|
||||
{
|
||||
return ImTextureDataGetFormatBytesPerPixel(format);
|
||||
|
||||
87
cimgui.h
87
cimgui.h
@@ -1,5 +1,5 @@
|
||||
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
|
||||
//based on imgui.h file version "1.92.6" 19261 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//based on imgui.h file version "1.92.8" 19280 from Dear ImGui https://github.com/ocornut/imgui
|
||||
//with imgui_internal.h api
|
||||
//with imgui_freetype.h api
|
||||
//docking branch
|
||||
@@ -752,6 +752,7 @@ typedef enum {
|
||||
ImGuiCol_ScrollbarGrabHovered,
|
||||
ImGuiCol_ScrollbarGrabActive,
|
||||
ImGuiCol_CheckMark,
|
||||
ImGuiCol_CheckboxSelectedBg,
|
||||
ImGuiCol_SliderGrab,
|
||||
ImGuiCol_SliderGrabActive,
|
||||
ImGuiCol_Button,
|
||||
@@ -833,8 +834,10 @@ typedef enum {
|
||||
ImGuiStyleVar_TableAngledHeadersTextAlign,
|
||||
ImGuiStyleVar_TreeLinesSize,
|
||||
ImGuiStyleVar_TreeLinesRounding,
|
||||
ImGuiStyleVar_DragDropTargetRounding,
|
||||
ImGuiStyleVar_ButtonTextAlign,
|
||||
ImGuiStyleVar_SelectableTextAlign,
|
||||
ImGuiStyleVar_SeparatorSize,
|
||||
ImGuiStyleVar_SeparatorTextBorderSize,
|
||||
ImGuiStyleVar_SeparatorTextAlign,
|
||||
ImGuiStyleVar_SeparatorTextPadding,
|
||||
@@ -848,6 +851,7 @@ typedef enum {
|
||||
ImGuiButtonFlags_MouseButtonMiddle = 1 << 2,
|
||||
ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle,
|
||||
ImGuiButtonFlags_EnableNav = 1 << 3,
|
||||
ImGuiButtonFlags_AllowOverlap = 1 << 12,
|
||||
}ImGuiButtonFlags_;
|
||||
typedef enum {
|
||||
ImGuiColorEditFlags_None = 0,
|
||||
@@ -1077,6 +1081,7 @@ struct ImGuiStyle
|
||||
ImGuiDir ColorButtonPosition;
|
||||
ImVec2_c ButtonTextAlign;
|
||||
ImVec2_c SelectableTextAlign;
|
||||
float SeparatorSize;
|
||||
float SeparatorTextBorderSize;
|
||||
ImVec2_c SeparatorTextAlign;
|
||||
ImVec2_c SeparatorTextPadding;
|
||||
@@ -1259,6 +1264,7 @@ struct ImGuiWindowClass
|
||||
ImGuiDockNodeFlags DockNodeFlagsOverrideSet;
|
||||
bool DockingAlwaysTabBar;
|
||||
bool DockingAllowUnclassed;
|
||||
void* PlatformIconData;
|
||||
};
|
||||
struct ImGuiPayload
|
||||
{
|
||||
@@ -1314,15 +1320,16 @@ typedef enum {
|
||||
}ImGuiListClipperFlags_;
|
||||
struct ImGuiListClipper
|
||||
{
|
||||
ImGuiContext* Ctx;
|
||||
int DisplayStart;
|
||||
int DisplayEnd;
|
||||
int UserIndex;
|
||||
int ItemsCount;
|
||||
float ItemsHeight;
|
||||
ImGuiListClipperFlags Flags;
|
||||
double StartPosY;
|
||||
double StartSeekOffsetY;
|
||||
ImGuiContext* Ctx;
|
||||
void* TempData;
|
||||
ImGuiListClipperFlags Flags;
|
||||
};
|
||||
struct ImColor_c
|
||||
{
|
||||
@@ -1343,10 +1350,12 @@ typedef enum {
|
||||
ImGuiMultiSelectFlags_ClearOnClickVoid = 1 << 10,
|
||||
ImGuiMultiSelectFlags_ScopeWindow = 1 << 11,
|
||||
ImGuiMultiSelectFlags_ScopeRect = 1 << 12,
|
||||
ImGuiMultiSelectFlags_SelectOnClick = 1 << 13,
|
||||
ImGuiMultiSelectFlags_SelectOnClickRelease = 1 << 14,
|
||||
ImGuiMultiSelectFlags_SelectOnAuto = 1 << 13,
|
||||
ImGuiMultiSelectFlags_SelectOnClickAlways = 1 << 14,
|
||||
ImGuiMultiSelectFlags_SelectOnClickRelease = 1 << 15,
|
||||
ImGuiMultiSelectFlags_NavWrapX = 1 << 16,
|
||||
ImGuiMultiSelectFlags_NoSelectOnRightClick = 1 << 17,
|
||||
ImGuiMultiSelectFlags_SelectOnMask_ = ImGuiMultiSelectFlags_SelectOnAuto | ImGuiMultiSelectFlags_SelectOnClickAlways | ImGuiMultiSelectFlags_SelectOnClickRelease,
|
||||
}ImGuiMultiSelectFlags_;
|
||||
typedef struct ImVector_ImGuiSelectionRequest {int Size;int Capacity;ImGuiSelectionRequest* Data;} ImVector_ImGuiSelectionRequest;
|
||||
|
||||
@@ -1432,12 +1441,12 @@ struct ImDrawListSplitter
|
||||
};
|
||||
typedef enum {
|
||||
ImDrawFlags_None = 0,
|
||||
ImDrawFlags_Closed = 1 << 0,
|
||||
ImDrawFlags_RoundCornersTopLeft = 1 << 4,
|
||||
ImDrawFlags_RoundCornersTopRight = 1 << 5,
|
||||
ImDrawFlags_RoundCornersBottomLeft = 1 << 6,
|
||||
ImDrawFlags_RoundCornersBottomRight = 1 << 7,
|
||||
ImDrawFlags_RoundCornersNone = 1 << 8,
|
||||
ImDrawFlags_Closed = 1 << 9,
|
||||
ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
|
||||
ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
|
||||
ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
|
||||
@@ -1445,6 +1454,7 @@ typedef enum {
|
||||
ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
|
||||
ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll,
|
||||
ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone,
|
||||
ImDrawFlags_InvalidMask_ = (ImDrawFlags)0x8000000F,
|
||||
}ImDrawFlags_;
|
||||
typedef enum {
|
||||
ImDrawListFlags_None = 0,
|
||||
@@ -1663,6 +1673,7 @@ typedef enum {
|
||||
ImFontFlags_NoLoadError = 1 << 1,
|
||||
ImFontFlags_NoLoadGlyphs = 1 << 2,
|
||||
ImFontFlags_LockBakedSizes = 1 << 3,
|
||||
ImFontFlags_ImplicitRefSize = 1 << 4,
|
||||
}ImFontFlags_;
|
||||
typedef struct ImVector_ImFontConfigPtr {int Size;int Capacity;ImFontConfig** Data;} ImVector_ImFontConfigPtr;
|
||||
|
||||
@@ -1713,6 +1724,7 @@ struct ImGuiViewport
|
||||
ImDrawData* DrawData;
|
||||
void* RendererUserData;
|
||||
void* PlatformUserData;
|
||||
void* PlatformIconData;
|
||||
void* PlatformHandle;
|
||||
void* PlatformHandleRaw;
|
||||
bool PlatformWindowCreated;
|
||||
@@ -1737,6 +1749,9 @@ struct ImGuiPlatformIO
|
||||
int Renderer_TextureMaxWidth;
|
||||
int Renderer_TextureMaxHeight;
|
||||
void* Renderer_RenderState;
|
||||
ImDrawCallback DrawCallback_ResetRenderState;
|
||||
ImDrawCallback DrawCallback_SetSamplerLinear;
|
||||
ImDrawCallback DrawCallback_SetSamplerNearest;
|
||||
void (*Platform_CreateWindow)(ImGuiViewport* vp);
|
||||
void (*Platform_DestroyWindow)(ImGuiViewport* vp);
|
||||
void (*Platform_ShowWindow)(ImGuiViewport* vp);
|
||||
@@ -1989,6 +2004,7 @@ typedef enum {
|
||||
ImGuiItemStatusFlags_Visible = 1 << 8,
|
||||
ImGuiItemStatusFlags_HasClipRect = 1 << 9,
|
||||
ImGuiItemStatusFlags_HasShortcut = 1 << 10,
|
||||
ImGuiItemStatusFlags_EditedInternal = 1 << 11,
|
||||
}ImGuiItemStatusFlags_;
|
||||
typedef enum {
|
||||
ImGuiHoveredFlags_DelayMask_ = ImGuiHoveredFlags_DelayNone | ImGuiHoveredFlags_DelayShort | ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay,
|
||||
@@ -1997,7 +2013,7 @@ typedef enum {
|
||||
}ImGuiHoveredFlagsPrivate_;
|
||||
typedef enum {
|
||||
ImGuiInputTextFlags_Multiline = 1 << 26,
|
||||
ImGuiInputTextFlags_MergedItem = 1 << 27,
|
||||
ImGuiInputTextFlags_TempInput = 1 << 27,
|
||||
ImGuiInputTextFlags_LocalizeDecimalPoint= 1 << 28,
|
||||
}ImGuiInputTextFlagsPrivate_;
|
||||
typedef enum {
|
||||
@@ -2008,7 +2024,6 @@ typedef enum {
|
||||
ImGuiButtonFlags_PressedOnDoubleClick = 1 << 8,
|
||||
ImGuiButtonFlags_PressedOnDragDropHold = 1 << 9,
|
||||
ImGuiButtonFlags_FlattenChildren = 1 << 11,
|
||||
ImGuiButtonFlags_AllowOverlap = 1 << 12,
|
||||
ImGuiButtonFlags_AlignTextBaseLine = 1 << 15,
|
||||
ImGuiButtonFlags_NoKeyModsAllowed = 1 << 16,
|
||||
ImGuiButtonFlags_NoHoldingActiveId = 1 << 17,
|
||||
@@ -2147,7 +2162,8 @@ struct ImGuiInputTextState
|
||||
bool CursorFollow;
|
||||
bool CursorCenterY;
|
||||
bool SelectedAllMouseLock;
|
||||
bool Edited;
|
||||
bool EditedBefore;
|
||||
bool EditedThisFrame;
|
||||
bool WantReloadUserBuf;
|
||||
ImS8 LastMoveDirectionLR;
|
||||
int ReloadSelectionStart;
|
||||
@@ -2594,6 +2610,7 @@ struct ImGuiBoxSelectState
|
||||
ImGuiWindow* Window;
|
||||
bool UnclipMode;
|
||||
ImRect_c UnclipRect;
|
||||
ImRect_c UnclipRects[2];
|
||||
ImRect_c BoxSelectRectPrev;
|
||||
ImRect_c BoxSelectRectCurr;
|
||||
};
|
||||
@@ -2605,7 +2622,6 @@ struct ImGuiMultiSelectTempData
|
||||
ImGuiMultiSelectFlags Flags;
|
||||
ImVec2_c ScopeRectMin;
|
||||
ImVec2_c BackupCursorMaxPos;
|
||||
ImGuiSelectionUserData LastSubmittedItem;
|
||||
ImGuiID BoxSelectId;
|
||||
ImGuiKeyChord KeyMods;
|
||||
ImS8 LoopRequestSetAll;
|
||||
@@ -2676,8 +2692,8 @@ struct ImGuiDockNode
|
||||
ImVec2_c Size;
|
||||
ImVec2_c SizeRef;
|
||||
ImGuiAxis SplitAxis;
|
||||
ImGuiWindowClass WindowClass;
|
||||
ImU32 LastBgColor;
|
||||
ImGuiWindowClass WindowClass;
|
||||
ImGuiWindow* HostWindow;
|
||||
ImGuiWindow* VisibleWindow;
|
||||
ImGuiDockNode* CentralNode;
|
||||
@@ -2747,7 +2763,7 @@ struct ImGuiViewportP
|
||||
float LastAlpha;
|
||||
bool LastFocusedHadNavWindow;
|
||||
short PlatformMonitor;
|
||||
int BgFgDrawListsLastFrame[2];
|
||||
float BgFgDrawListsLastTimeActive[2];
|
||||
ImDrawList* BgFgDrawLists[2];
|
||||
ImDrawData DrawDataP;
|
||||
ImDrawDataBuilder DrawDataBuilder;
|
||||
@@ -2900,6 +2916,7 @@ struct ImGuiContextHook
|
||||
ImGuiContextHookCallback Callback;
|
||||
void* UserData;
|
||||
};
|
||||
typedef void (*ImGuiDemoMarkerCallback)(const char* file, int line, const char* section);
|
||||
typedef struct ImVector_ImFontAtlasPtr {int Size;int Capacity;ImFontAtlas** Data;} ImVector_ImFontAtlasPtr;
|
||||
|
||||
typedef struct ImVector_ImGuiInputEvent {int Size;int Capacity;ImGuiInputEvent* Data;} ImVector_ImGuiInputEvent;
|
||||
@@ -2985,6 +3002,7 @@ struct ImGuiContext
|
||||
float CurrentDpiScale;
|
||||
ImDrawListSharedData DrawListSharedData;
|
||||
ImGuiID WithinEndChildID;
|
||||
ImGuiID WithinEndPopupID;
|
||||
void* TestEngine;
|
||||
ImVector_ImGuiInputEvent InputEventsQueue;
|
||||
ImVector_ImGuiInputEvent InputEventsTrail;
|
||||
@@ -3085,6 +3103,7 @@ struct ImGuiContext
|
||||
ImGuiWindow* NavWindow;
|
||||
ImGuiID NavFocusScopeId;
|
||||
ImGuiNavLayer NavLayer;
|
||||
ImGuiItemFlags NavIdItemFlags;
|
||||
ImGuiID NavActivateId;
|
||||
ImGuiID NavActivateDownId;
|
||||
ImGuiID NavActivatePressedId;
|
||||
@@ -3092,6 +3111,8 @@ struct ImGuiContext
|
||||
ImVector_ImGuiFocusScopeData NavFocusRoute;
|
||||
ImGuiID NavHighlightActivatedId;
|
||||
float NavHighlightActivatedTimer;
|
||||
ImGuiID NavOpenContextMenuItemId;
|
||||
ImGuiID NavOpenContextMenuWindowId;
|
||||
ImGuiID NavNextActivateId;
|
||||
ImGuiActivateFlags NavNextActivateFlags;
|
||||
ImGuiInputSource NavInputSource;
|
||||
@@ -3192,6 +3213,7 @@ struct ImGuiContext
|
||||
ImGuiInputTextDeactivatedState InputTextDeactivatedState;
|
||||
ImFontBaked InputTextPasswordFontBackupBaked;
|
||||
ImFontFlags InputTextPasswordFontBackupFlags;
|
||||
ImGuiID InputTextReactivateId;
|
||||
ImGuiID TempInputId;
|
||||
ImGuiDataTypeStorage DataTypeZeroValue;
|
||||
int BeginMenuDepth;
|
||||
@@ -3234,6 +3256,7 @@ struct ImGuiContext
|
||||
ImChunkStream_ImGuiTableSettings SettingsTables;
|
||||
ImVector_ImGuiContextHook Hooks;
|
||||
ImGuiID HookIdNext;
|
||||
ImGuiDemoMarkerCallback DemoMarkerCallback;
|
||||
const char* LocalizationTable[ImGuiLocKey_COUNT];
|
||||
bool LogEnabled;
|
||||
bool LogLineFirstItem;
|
||||
@@ -3680,8 +3703,9 @@ struct ImGuiTable
|
||||
ImGuiTableColumnIdx ResizedColumn;
|
||||
ImGuiTableColumnIdx LastResizedColumn;
|
||||
ImGuiTableColumnIdx HeldHeaderColumn;
|
||||
ImGuiTableColumnIdx LastHeldHeaderColumn;
|
||||
ImGuiTableColumnIdx ReorderColumn;
|
||||
ImGuiTableColumnIdx ReorderColumnDir;
|
||||
ImGuiTableColumnIdx ReorderColumnDstOrder;
|
||||
ImGuiTableColumnIdx LeftMostEnabledColumn;
|
||||
ImGuiTableColumnIdx RightMostEnabledColumn;
|
||||
ImGuiTableColumnIdx LeftMostStretchedColumn;
|
||||
@@ -3846,8 +3870,6 @@ typedef enum {
|
||||
#endif
|
||||
#define IMGUI_HAS_DOCK 1
|
||||
|
||||
#define ImDrawCallback_ResetRenderState (ImDrawCallback)(-8)
|
||||
|
||||
#define ImTextureID_Invalid ((ImTextureID)0)
|
||||
|
||||
#else
|
||||
@@ -4240,6 +4262,7 @@ CIMGUI_API bool igCollapsingHeader_TreeNodeFlags(const char* label,ImGuiTreeNode
|
||||
CIMGUI_API bool igCollapsingHeader_BoolPtr(const char* label,bool* p_visible,ImGuiTreeNodeFlags flags);
|
||||
CIMGUI_API void igSetNextItemOpen(bool is_open,ImGuiCond cond);
|
||||
CIMGUI_API void igSetNextItemStorageID(ImGuiID storage_id);
|
||||
CIMGUI_API bool igTreeNodeGetOpen(ImGuiID storage_id);
|
||||
CIMGUI_API bool igSelectable_Bool(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2_c size);
|
||||
CIMGUI_API bool igSelectable_BoolPtr(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2_c size);
|
||||
CIMGUI_API ImGuiMultiSelectIO* igBeginMultiSelect(ImGuiMultiSelectFlags flags,int selection_size,int items_count);
|
||||
@@ -4397,7 +4420,7 @@ CIMGUI_API const char* igGetKeyName(ImGuiKey key);
|
||||
CIMGUI_API void igSetNextFrameWantCaptureKeyboard(bool want_capture_keyboard);
|
||||
CIMGUI_API bool igShortcut_Nil(ImGuiKeyChord key_chord,ImGuiInputFlags flags);
|
||||
CIMGUI_API void igSetNextItemShortcut(ImGuiKeyChord key_chord,ImGuiInputFlags flags);
|
||||
CIMGUI_API void igSetItemKeyOwner_Nil(ImGuiKey key);
|
||||
CIMGUI_API bool igSetItemKeyOwner_Nil(ImGuiKey key);
|
||||
CIMGUI_API bool igIsMouseDown_Nil(ImGuiMouseButton button);
|
||||
CIMGUI_API bool igIsMouseClicked_Bool(ImGuiMouseButton button,bool repeat);
|
||||
CIMGUI_API bool igIsMouseReleased_Nil(ImGuiMouseButton button);
|
||||
@@ -4573,7 +4596,9 @@ CIMGUI_API void ImDrawList_PopTexture(ImDrawList* self);
|
||||
CIMGUI_API ImVec2_c ImDrawList_GetClipRectMin(ImDrawList* self);
|
||||
CIMGUI_API ImVec2_c ImDrawList_GetClipRectMax(ImDrawList* self);
|
||||
CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2_c p1,const ImVec2_c p2,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddLineH(ImDrawList* self,float min_x,float max_x,float y,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddLineV(ImDrawList* self,float x,float min_y,float max_y,ImU32 col,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col,float rounding,float thickness,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col,float rounding,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2_c p_min,const ImVec2_c p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left);
|
||||
CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self,const ImVec2_c p1,const ImVec2_c p2,const ImVec2_c p3,const ImVec2_c p4,ImU32 col,float thickness);
|
||||
@@ -4590,7 +4615,7 @@ CIMGUI_API void ImDrawList_AddText_Vec2(ImDrawList* self,const ImVec2_c pos,ImU3
|
||||
CIMGUI_API void ImDrawList_AddText_FontPtr(ImDrawList* self,ImFont* font,float font_size,const ImVec2_c pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect);
|
||||
CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2_c p1,const ImVec2_c p2,const ImVec2_c p3,const ImVec2_c p4,ImU32 col,float thickness,int num_segments);
|
||||
CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2_c p1,const ImVec2_c p2,const ImVec2_c p3,ImU32 col,float thickness,int num_segments);
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col,float thickness,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_AddConcavePolyFilled(ImDrawList* self,const ImVec2_c* points,int num_points,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureRef_c tex_ref,const ImVec2_c p_min,const ImVec2_c p_max,const ImVec2_c uv_min,const ImVec2_c uv_max,ImU32 col);
|
||||
@@ -4601,7 +4626,7 @@ CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2_c pos);
|
||||
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2_c pos);
|
||||
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PathFillConcave(ImDrawList* self,ImU32 col);
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness);
|
||||
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,float thickness,ImDrawFlags flags);
|
||||
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2_c center,float radius,float a_min,float a_max,int num_segments);
|
||||
CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2_c center,float radius,int a_min_of_12,int a_max_of_12);
|
||||
CIMGUI_API void ImDrawList_PathEllipticalArcTo(ImDrawList* self,const ImVec2_c center,const ImVec2_c radius,float rot,float a_min,float a_max,int num_segments);
|
||||
@@ -4679,10 +4704,10 @@ CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self,
|
||||
CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self,const char* compressed_font_data_base85,float size_pixels,const ImFontConfig* font_cfg,const ImWchar* glyph_ranges);
|
||||
CIMGUI_API void ImFontAtlas_RemoveFont(ImFontAtlas* self,ImFont* font);
|
||||
CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self);
|
||||
CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self);
|
||||
CIMGUI_API void ImFontAtlas_CompactCache(ImFontAtlas* self);
|
||||
CIMGUI_API void ImFontAtlas_SetFontLoader(ImFontAtlas* self,const ImFontLoader* font_loader);
|
||||
CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self);
|
||||
CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self);
|
||||
CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self);
|
||||
CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self);
|
||||
CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRect(ImFontAtlas* self,int width,int height,ImFontAtlasRect* out_r);
|
||||
@@ -4712,6 +4737,7 @@ CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void);
|
||||
CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self);
|
||||
CIMGUI_API ImVec2_c ImGuiViewport_GetCenter(ImGuiViewport* self);
|
||||
CIMGUI_API ImVec2_c ImGuiViewport_GetWorkCenter(ImGuiViewport* self);
|
||||
CIMGUI_API const char* ImGuiViewport_GetDebugName(ImGuiViewport* self);
|
||||
CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void);
|
||||
CIMGUI_API void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self);
|
||||
CIMGUI_API void ImGuiPlatformIO_ClearPlatformHandlers(ImGuiPlatformIO* self);
|
||||
@@ -4860,6 +4886,8 @@ CIMGUI_API bool ImRect_ContainsWithPad(ImRect* self,const ImVec2_c p,const ImVec
|
||||
CIMGUI_API bool ImRect_Overlaps(ImRect* self,const ImRect_c r);
|
||||
CIMGUI_API void ImRect_Add_Vec2(ImRect* self,const ImVec2_c p);
|
||||
CIMGUI_API void ImRect_Add_Rect(ImRect* self,const ImRect_c r);
|
||||
CIMGUI_API void ImRect_AddX(ImRect* self,float x);
|
||||
CIMGUI_API void ImRect_AddY(ImRect* self,float y);
|
||||
CIMGUI_API void ImRect_Expand_Float(ImRect* self,const float amount);
|
||||
CIMGUI_API void ImRect_Expand_Vec2(ImRect* self,const ImVec2_c amount);
|
||||
CIMGUI_API void ImRect_Translate(ImRect* self,const ImVec2_c d);
|
||||
@@ -4914,6 +4942,7 @@ CIMGUI_API void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self,int key);
|
||||
CIMGUI_API void ImGuiInputTextState_OnCharPressed(ImGuiInputTextState* self,unsigned int c);
|
||||
CIMGUI_API float ImGuiInputTextState_GetPreferredOffsetX(ImGuiInputTextState* self);
|
||||
CIMGUI_API const char* ImGuiInputTextState_GetText(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self);
|
||||
CIMGUI_API void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self);
|
||||
CIMGUI_API bool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self);
|
||||
@@ -5164,6 +5193,7 @@ CIMGUI_API void igLogToBuffer(int auto_open_depth);
|
||||
CIMGUI_API void igLogRenderedText(const ImVec2_c* ref_pos,const char* text,const char* text_end);
|
||||
CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix);
|
||||
CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2_c size_arg,ImGuiChildFlags child_flags,ImGuiWindowFlags window_flags);
|
||||
CIMGUI_API ImGuiWindow* igFindFrontMostVisibleChildWindow(ImGuiWindow* window);
|
||||
CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_window_flags);
|
||||
CIMGUI_API bool igBeginPopupMenuEx(ImGuiID id,const char* label,ImGuiWindowFlags extra_window_flags);
|
||||
CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags);
|
||||
@@ -5178,6 +5208,8 @@ CIMGUI_API ImGuiWindow* igFindBlockingModal(ImGuiWindow* window);
|
||||
CIMGUI_API ImVec2_c igFindBestWindowPosForPopup(ImGuiWindow* window);
|
||||
CIMGUI_API ImVec2_c igFindBestWindowPosForPopupEx(const ImVec2_c ref_pos,const ImVec2_c size,ImGuiDir* last_dir,const ImRect_c r_outer,const ImRect_c r_avoid,ImGuiPopupPositionPolicy policy);
|
||||
CIMGUI_API ImGuiMouseButton igGetMouseButtonFromPopupFlags(ImGuiPopupFlags flags);
|
||||
CIMGUI_API bool igIsPopupOpenRequestForItem(ImGuiPopupFlags flags,ImGuiID id);
|
||||
CIMGUI_API bool igIsPopupOpenRequestForWindow(ImGuiPopupFlags flags);
|
||||
CIMGUI_API bool igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags);
|
||||
CIMGUI_API bool igBeginTooltipHidden(void);
|
||||
CIMGUI_API bool igBeginViewportSideBar(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags);
|
||||
@@ -5230,7 +5262,7 @@ CIMGUI_API bool igIsActiveIdUsingNavDir(ImGuiDir dir);
|
||||
CIMGUI_API ImGuiID igGetKeyOwner(ImGuiKey key);
|
||||
CIMGUI_API void igSetKeyOwner(ImGuiKey key,ImGuiID owner_id,ImGuiInputFlags flags);
|
||||
CIMGUI_API void igSetKeyOwnersForKeyChord(ImGuiKeyChord key,ImGuiID owner_id,ImGuiInputFlags flags);
|
||||
CIMGUI_API void igSetItemKeyOwner_InputFlags(ImGuiKey key,ImGuiInputFlags flags);
|
||||
CIMGUI_API bool igSetItemKeyOwner_InputFlags(ImGuiKey key,ImGuiInputFlags flags);
|
||||
CIMGUI_API bool igTestKeyOwner(ImGuiKey key,ImGuiID owner_id);
|
||||
CIMGUI_API ImGuiKeyOwnerData* igGetKeyOwnerData(ImGuiContext* ctx,ImGuiKey key);
|
||||
CIMGUI_API bool igIsKeyDown_ID(ImGuiKey key,ImGuiID owner_id);
|
||||
@@ -5289,6 +5321,7 @@ CIMGUI_API void igDockBuilderCopyWindowSettings(const char* src_name,const char*
|
||||
CIMGUI_API void igDockBuilderFinish(ImGuiID node_id);
|
||||
CIMGUI_API void igPushFocusScope(ImGuiID id);
|
||||
CIMGUI_API void igPopFocusScope(void);
|
||||
CIMGUI_API bool igIsInNavFocusRoute(ImGuiID focus_scope_id);
|
||||
CIMGUI_API ImGuiID igGetCurrentFocusScope(void);
|
||||
CIMGUI_API bool igIsDragDropActive(void);
|
||||
CIMGUI_API bool igBeginDragDropTargetCustom(const ImRect_c bb,ImGuiID id);
|
||||
@@ -5296,7 +5329,7 @@ CIMGUI_API bool igBeginDragDropTargetViewport(ImGuiViewport* viewport,const ImRe
|
||||
CIMGUI_API void igClearDragDrop(void);
|
||||
CIMGUI_API bool igIsDragDropPayloadBeingAccepted(void);
|
||||
CIMGUI_API void igRenderDragDropTargetRectForItem(const ImRect_c bb);
|
||||
CIMGUI_API void igRenderDragDropTargetRectEx(ImDrawList* draw_list,const ImRect_c bb);
|
||||
CIMGUI_API void igRenderDragDropTargetRectEx(ImDrawList* draw_list,const ImRect_c bb,float rounding);
|
||||
CIMGUI_API ImGuiTypingSelectRequest* igGetTypingSelectRequest(ImGuiTypingSelectFlags flags);
|
||||
CIMGUI_API int igTypingSelectFindMatch(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx);
|
||||
CIMGUI_API int igTypingSelectFindNextSingleCharMatch(ImGuiTypingSelectRequest* req,int items_count,const char*(*get_item_name_func)(void*,int),void* user_data,int nav_item_idx);
|
||||
@@ -5339,6 +5372,7 @@ CIMGUI_API void igTableSetupDrawChannels(ImGuiTable* table);
|
||||
CIMGUI_API void igTableUpdateLayout(ImGuiTable* table);
|
||||
CIMGUI_API void igTableUpdateBorders(ImGuiTable* table);
|
||||
CIMGUI_API void igTableUpdateColumnsWeightFromWidth(ImGuiTable* table);
|
||||
CIMGUI_API void igTableApplyExternalUnclipRect(ImGuiTable* table,ImRect* rect);
|
||||
CIMGUI_API void igTableDrawBorders(ImGuiTable* table);
|
||||
CIMGUI_API void igTableDrawDefaultContextMenu(ImGuiTable* table,ImGuiTableFlags flags_for_section_to_display);
|
||||
CIMGUI_API bool igTableBeginContextMenuPopup(ImGuiTable* table);
|
||||
@@ -5362,6 +5396,7 @@ CIMGUI_API float igTableCalcMaxColumnWidth(const ImGuiTable* table,int column_n)
|
||||
CIMGUI_API void igTableSetColumnWidthAutoSingle(ImGuiTable* table,int column_n);
|
||||
CIMGUI_API void igTableSetColumnWidthAutoAll(ImGuiTable* table);
|
||||
CIMGUI_API void igTableSetColumnDisplayOrder(ImGuiTable* table,int column_n,int dst_order);
|
||||
CIMGUI_API void igTableQueueSetColumnDisplayOrder(ImGuiTable* table,int column_n,int dst_order);
|
||||
CIMGUI_API void igTableRemove(ImGuiTable* table);
|
||||
CIMGUI_API void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table);
|
||||
CIMGUI_API void igTableGcCompactTransientBuffers_TableTempDataPtr(ImGuiTableTempData* table);
|
||||
@@ -5438,6 +5473,7 @@ CIMGUI_API ImRect_c igGetWindowScrollbarRect(ImGuiWindow* window,ImGuiAxis axis)
|
||||
CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis);
|
||||
CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window,int n);
|
||||
CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir);
|
||||
CIMGUI_API void igExtendHitBoxWhenNearViewportEdge(ImGuiWindow* window,ImRect* bb,float threshold,ImGuiAxis axis);
|
||||
CIMGUI_API bool igButtonBehavior(const ImRect_c bb,ImGuiID id,bool* out_hovered,bool* out_held,ImGuiButtonFlags flags);
|
||||
CIMGUI_API bool igDragBehavior(ImGuiID id,ImGuiDataType data_type,void* p_v,float v_speed,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags);
|
||||
CIMGUI_API bool igSliderBehavior(const ImRect_c bb,ImGuiID id,ImGuiDataType data_type,void* p_v,const void* p_min,const void* p_max,const char* format,ImGuiSliderFlags flags,ImRect* out_grab_bb);
|
||||
@@ -5446,7 +5482,6 @@ CIMGUI_API bool igTreeNodeBehavior(ImGuiID id,ImGuiTreeNodeFlags flags,const cha
|
||||
CIMGUI_API void igTreeNodeDrawLineToChildNode(const ImVec2_c target_pos);
|
||||
CIMGUI_API void igTreeNodeDrawLineToTreePop(const ImGuiTreeNodeStackData* data);
|
||||
CIMGUI_API void igTreePushOverrideID(ImGuiID id);
|
||||
CIMGUI_API bool igTreeNodeGetOpen(ImGuiID storage_id);
|
||||
CIMGUI_API void igTreeNodeSetOpen(ImGuiID storage_id,bool open);
|
||||
CIMGUI_API bool igTreeNodeUpdateNextOpen(ImGuiID storage_id,ImGuiTreeNodeFlags flags);
|
||||
CIMGUI_API const ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type);
|
||||
@@ -5458,7 +5493,7 @@ CIMGUI_API bool igDataTypeClamp(ImGuiDataType data_type,void* p_data,const void*
|
||||
CIMGUI_API bool igDataTypeIsZero(ImGuiDataType data_type,const void* p_data);
|
||||
CIMGUI_API bool igInputTextEx(const char* label,const char* hint,char* buf,int buf_size,const ImVec2_c size_arg,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API void igInputTextDeactivateHook(ImGuiID id);
|
||||
CIMGUI_API bool igTempInputText(const ImRect_c bb,ImGuiID id,const char* label,char* buf,int buf_size,ImGuiInputTextFlags flags);
|
||||
CIMGUI_API bool igTempInputText(const ImRect_c bb,ImGuiID id,const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data);
|
||||
CIMGUI_API bool igTempInputScalar(const ImRect_c bb,ImGuiID id,const char* label,ImGuiDataType data_type,void* p_data,const char* format,const void* p_clamp_min,const void* p_clamp_max);
|
||||
CIMGUI_API bool igTempInputIsActive(ImGuiID id);
|
||||
CIMGUI_API ImGuiInputTextState* igGetInputTextState(ImGuiID id);
|
||||
@@ -5483,6 +5518,7 @@ CIMGUI_API void igErrorCheckUsingSetCursorPosToExtendParentBoundaries(void);
|
||||
CIMGUI_API void igErrorCheckEndFrameFinalizeErrorTooltip(void);
|
||||
CIMGUI_API bool igBeginErrorTooltip(void);
|
||||
CIMGUI_API void igEndErrorTooltip(void);
|
||||
CIMGUI_API void igDemoMarker(const char* file,int line,const char* section);
|
||||
CIMGUI_API void igDebugAllocHook(ImGuiDebugAllocInfo* info,int frame_count,void* ptr,size_t size);
|
||||
CIMGUI_API void igDebugDrawCursorPos(ImU32 col);
|
||||
CIMGUI_API void igDebugDrawLineExtents(ImU32 col);
|
||||
@@ -5502,7 +5538,7 @@ CIMGUI_API void igDebugNodeDockNode(ImGuiDockNode* node,const char* label);
|
||||
CIMGUI_API void igDebugNodeDrawList(ImGuiWindow* window,ImGuiViewportP* viewport,const ImDrawList* draw_list,const char* label);
|
||||
CIMGUI_API void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list,const ImDrawList* draw_list,const ImDrawCmd* draw_cmd,bool show_mesh,bool show_aabb);
|
||||
CIMGUI_API void igDebugNodeFont(ImFont* font);
|
||||
CIMGUI_API void igDebugNodeFontGlyphesForSrcMask(ImFont* font,ImFontBaked* baked,int src_mask);
|
||||
CIMGUI_API void igDebugNodeFontGlyphsForSrcMask(ImFont* font,ImFontBaked* baked,int src_mask);
|
||||
CIMGUI_API void igDebugNodeFontGlyph(ImFont* font,const ImFontGlyph* glyph);
|
||||
CIMGUI_API void igDebugNodeTexture(ImTextureData* tex,int int_id,const ImFontAtlasRect* highlight_rect);
|
||||
CIMGUI_API void igDebugNodeStorage(ImGuiStorage* storage,const char* label);
|
||||
@@ -5578,6 +5614,7 @@ CIMGUI_API void igImFontAtlasTextureBlockPostProcessMultiply(ImFontAtlasPostProc
|
||||
CIMGUI_API void igImFontAtlasTextureBlockFill(ImTextureData* dst_tex,int dst_x,int dst_y,int w,int h,ImU32 col);
|
||||
CIMGUI_API void igImFontAtlasTextureBlockCopy(ImTextureData* src_tex,int src_x,int src_y,ImTextureData* dst_tex,int dst_x,int dst_y,int w,int h);
|
||||
CIMGUI_API void igImFontAtlasTextureBlockQueueUpload(ImFontAtlas* atlas,ImTextureData* tex,int x,int y,int w,int h);
|
||||
CIMGUI_API void igImTextureDataQueueUpload(ImTextureData* tex,int x,int y,int w,int h);
|
||||
CIMGUI_API int igImTextureDataGetFormatBytesPerPixel(ImTextureFormat format);
|
||||
CIMGUI_API const char* igImTextureDataGetStatusName(ImTextureStatus status);
|
||||
CIMGUI_API const char* igImTextureDataGetFormatName(ImTextureFormat format);
|
||||
|
||||
@@ -110,11 +110,14 @@ CIMGUI_API void ImGui_ImplSDL3_Shutdown(void);
|
||||
typedef struct ImGui_ImplVulkanH_Frame ImGui_ImplVulkanH_Frame;
|
||||
typedef struct ImGui_ImplVulkanH_Window ImGui_ImplVulkanH_Window;
|
||||
typedef struct ImGui_ImplVulkan_PipelineInfo ImGui_ImplVulkan_PipelineInfo;
|
||||
typedef struct ImVector_VkDynamicState {int Size;int Capacity;VkDynamicState* Data;} ImVector_VkDynamicState;
|
||||
|
||||
struct ImGui_ImplVulkan_PipelineInfo
|
||||
{
|
||||
VkRenderPass RenderPass;
|
||||
uint32_t Subpass;
|
||||
VkSampleCountFlagBits MSAASamples;
|
||||
ImVector_VkDynamicState ExtraDynamicStates;
|
||||
VkPipelineRenderingCreateInfoKHR PipelineRenderingCreateInfo;
|
||||
VkImageUsageFlags SwapChainImageUsage;
|
||||
};
|
||||
@@ -192,7 +195,10 @@ struct ImGui_ImplVulkanH_Window
|
||||
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
typedef ImVector<ImGui_ImplVulkanH_Frame> ImVector_ImGui_ImplVulkanH_Frame;
|
||||
typedef ImVector<ImGui_ImplVulkanH_FrameSemaphores> ImVector_ImGui_ImplVulkanH_FrameSemaphores;
|
||||
typedef ImVector<VkDynamicState> ImVector_VkDynamicState;
|
||||
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
#define IMGUI_IMPL_VULKAN_MINIMUM_SAMPLED_IMAGE_POOL_SIZE (8)
|
||||
#define IMGUI_IMPL_VULKAN_MINIMUM_SAMPLER_POOL_SIZE (2)
|
||||
CIMGUI_API void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance,VkPhysicalDevice physical_device,VkDevice device,ImGui_ImplVulkanH_Window* wd,uint32_t queue_family,const VkAllocationCallbacks* allocator,int w,int h,uint32_t min_image_count,VkImageUsageFlags image_usage);
|
||||
CIMGUI_API void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator);
|
||||
CIMGUI_API int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode);
|
||||
@@ -202,7 +208,7 @@ CIMGUI_API VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice
|
||||
CIMGUI_API uint32_t ImGui_ImplVulkanH_SelectQueueFamilyIndex(VkPhysicalDevice physical_device);
|
||||
CIMGUI_API VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space);
|
||||
CIMGUI_API ImGui_ImplVulkanH_Window* ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window(void);
|
||||
CIMGUI_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout);
|
||||
CIMGUI_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkImageView image_view,VkImageLayout image_layout);
|
||||
CIMGUI_API void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_PipelineInfo* info);
|
||||
CIMGUI_API bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info);
|
||||
CIMGUI_API bool ImGui_ImplVulkan_LoadFunctions(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -120,10 +120,13 @@ local save_data = cpp2ffi.save_data
|
||||
local copyfile = cpp2ffi.copyfile
|
||||
local serializeTableF = cpp2ffi.serializeTableF
|
||||
|
||||
local function func_header_impl_generate(FP)
|
||||
local function func_header_impl_generate(FP, defines)
|
||||
|
||||
local outtab = {}
|
||||
|
||||
--may be key sorting is not enough and declaration order needed
|
||||
cpp2ffi.table_do_sorted(defines, function(k,v)
|
||||
table.insert(outtab,"#define "..k.." "..v.."\n")
|
||||
end)
|
||||
-- for _,t in ipairs(FP.funcdefs) do
|
||||
-- if t.cimguiname then
|
||||
-- local cimf = FP.defsT[t.cimguiname]
|
||||
@@ -286,6 +289,7 @@ local function cimgui_generation(parser)
|
||||
|
||||
|
||||
local tdt = parser:generate_templates()
|
||||
cpp2ffi.prtable("generate_templates",tdt)
|
||||
local cstructsstr = outpre..tdt..outpost
|
||||
|
||||
if gdefines.IMGUI_HAS_DOCK then
|
||||
@@ -379,16 +383,15 @@ end
|
||||
local function parseImGuiHeader(header,names)
|
||||
--prepare parser
|
||||
local parser = cpp2ffi.Parser()
|
||||
|
||||
parser.modulename = "cimgui"
|
||||
parser.getCname = function(stname,funcname,namespace)
|
||||
local pre = (stname == "") and (namespace and (namespace=="ImGui" and "ig" or namespace.."_") or "ig") or stname.."_"
|
||||
return pre..funcname
|
||||
end
|
||||
parser.cname_overloads = cimgui_overloads
|
||||
--parser.manuals = cimgui_manuals
|
||||
parser:set_manuals(cimgui_manuals, "cimgui")
|
||||
parser.skipped = cimgui_skipped
|
||||
parser.UDTs = {"ImVec2","ImVec4","ImColor","ImRect"}
|
||||
--parser.UDTs = {"ImVec2","ImVec4","ImColor","ImRect"}
|
||||
--parser.gen_template_typedef = gen_template_typedef --use auto
|
||||
parser.COMMENTS_GENERATION = COMMENTS_GENERATION
|
||||
parser.CONSTRUCTORS_GENERATION = CONSTRUCTORS_GENERATION
|
||||
@@ -438,14 +441,8 @@ structs_and_enums_table.templated_structs = parser1.templated_structs
|
||||
structs_and_enums_table.typenames = parser1.typenames
|
||||
structs_and_enums_table.templates_done = parser1.templates_done
|
||||
--structs_and_enums_table.nonPOD_used = parser1.nP_used
|
||||
|
||||
save_data("./output/structs_and_enums.lua",serializeTableF(structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.lua",serializeTableF(parser1.typedefs_dict))
|
||||
save_data("./output/constants.lua",serializeTableF(parser1.constants))
|
||||
----------save fundefs in definitions.lua for using in bindings
|
||||
--DefsByStruct(pFP)
|
||||
set_defines(parser1.defsT)
|
||||
save_data("./output/definitions.lua",serializeTableF(parser1.defsT))
|
||||
parser1:save_output()
|
||||
|
||||
--check every function has ov_cimguiname
|
||||
-- for k,v in pairs(parser1.defsT) do
|
||||
@@ -463,7 +460,11 @@ if ff then
|
||||
else
|
||||
backends_folder = IMGUI_PATH .. "/backends/"
|
||||
end
|
||||
|
||||
local function getCname(stname,funcname, namespace)
|
||||
if #stname == 0 then return funcname end --top level
|
||||
local pre = stname.."_"
|
||||
return pre..funcname
|
||||
end
|
||||
local parser2
|
||||
|
||||
if #implementations > 0 then
|
||||
@@ -495,13 +496,15 @@ if #implementations > 0 then
|
||||
end
|
||||
end
|
||||
parser2.cimgui_inherited = dofile([[./output/structs_and_enums.lua]])
|
||||
parser2.getCname = getCname
|
||||
local defines = parser2:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER)
|
||||
|
||||
local parser3 = cpp2ffi.Parser()
|
||||
parser3.getCname = getCname
|
||||
parser3.cimgui_inherited = dofile([[./output/structs_and_enums.lua]])
|
||||
parser3:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER)
|
||||
local defines = parser3:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER)
|
||||
parser3:do_parse()
|
||||
local cfuncsstr = func_header_impl_generate(parser3)
|
||||
local cfuncsstr = func_header_impl_generate(parser3, defines)
|
||||
local cstructstr1,cstructstr2 = parser3.structs_and_enums[1], parser3.structs_and_enums[2]
|
||||
local cstru = cstructstr1 .. cstructstr2
|
||||
if cstru ~="" then
|
||||
@@ -549,21 +552,9 @@ local function json_prepare(defs)
|
||||
end
|
||||
---[[
|
||||
local json = require"json"
|
||||
save_data("./output/definitions.json",json.encode(json_prepare(parser1.defsT),{dict_on_empty={defaults=true}}))
|
||||
--delete extra info for json
|
||||
--structs_and_enums_table.templated_structs = nil
|
||||
--structs_and_enums_table.typenames = nil
|
||||
--structs_and_enums_table.templates_done = nil
|
||||
save_data("./output/structs_and_enums.json",json.encode(structs_and_enums_table))
|
||||
save_data("./output/typedefs_dict.json",json.encode(parser1.typedefs_dict))
|
||||
save_data("./output/constants.json",json.encode(parser1.constants))
|
||||
if parser2 then
|
||||
save_data("./output/impl_definitions.json",json.encode(json_prepare(parser2.defsT),{dict_on_empty={defaults=true}}))
|
||||
end
|
||||
--]]
|
||||
-------------------copy C files to repo root
|
||||
copyfile("./output/cimgui.h", "../cimgui.h")
|
||||
copyfile("./output/cimgui.cpp", "../cimgui.cpp")
|
||||
os.remove("./output/cimgui.h")
|
||||
os.remove("./output/cimgui.cpp")
|
||||
|
||||
print"all done!!"
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
"IMGUI_TABLE_MAX_COLUMNS": "512",
|
||||
"IMGUI_TEST_ENGINE_ITEM_ADD(_ID,_BB,_ITEM_DATA)": "((void)0)",
|
||||
"IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS)": "((void)g)",
|
||||
"IMGUI_VERSION": "\"1.92.6\"",
|
||||
"IMGUI_VERSION_NUM": "19261",
|
||||
"IMGUI_VERSION": "\"1.92.8\"",
|
||||
"IMGUI_VERSION_NUM": "19280",
|
||||
"IMGUI_WINDOW_HARD_MIN_SIZE": "4.0f",
|
||||
"IMSTB_TEXTEDIT_CHARTYPE": "char",
|
||||
"IMSTB_TEXTEDIT_GETWIDTH_NEWLINE": "(-1.0f)",
|
||||
@@ -88,7 +88,6 @@
|
||||
"ImAtof(STR)": "atof(STR)",
|
||||
"ImCeil(X)": "ceilf(X)",
|
||||
"ImCos(X)": "cosf(X)",
|
||||
"ImDrawCallback_ResetRenderState": "(ImDrawCallback)(-8)",
|
||||
"ImFabs(X)": "fabsf(X)",
|
||||
"ImFmod(X,Y)": "fmodf((X), (Y))",
|
||||
"ImFontAtlasRectId_GenerationMask_": "(0x3FF00000)",
|
||||
@@ -109,7 +108,7 @@
|
||||
"ImGuiKey_Mouse_END": "(ImGuiKey_MouseWheelY + 1)",
|
||||
"ImGuiKey_NavGamepadActivate": "(g.IO.ConfigNavSwapGamepadButtons ? ImGuiKey_GamepadFaceRight : ImGuiKey_GamepadFaceDown)",
|
||||
"ImGuiKey_NavGamepadCancel": "(g.IO.ConfigNavSwapGamepadButtons ? ImGuiKey_GamepadFaceDown : ImGuiKey_GamepadFaceRight)",
|
||||
"ImGuiKey_NavGamepadInput": "ImGuiKey_GamepadFaceUp",
|
||||
"ImGuiKey_NavGamepadContextMenu": "ImGuiKey_GamepadFaceUp",
|
||||
"ImGuiKey_NavGamepadMenu": "ImGuiKey_GamepadFaceLeft",
|
||||
"ImGuiKey_NavGamepadTweakFast": "ImGuiKey_GamepadR1",
|
||||
"ImGuiKey_NavGamepadTweakSlow": "ImGuiKey_GamepadL1",
|
||||
|
||||
@@ -24,8 +24,8 @@ local t={
|
||||
IMGUI_TABLE_MAX_COLUMNS="512",
|
||||
["IMGUI_TEST_ENGINE_ITEM_ADD(_ID,_BB,_ITEM_DATA)"]="((void)0)",
|
||||
["IMGUI_TEST_ENGINE_ITEM_INFO(_ID,_LABEL,_FLAGS)"]="((void)g)",
|
||||
IMGUI_VERSION="\"1.92.6\"",
|
||||
IMGUI_VERSION_NUM="19261",
|
||||
IMGUI_VERSION="\"1.92.8\"",
|
||||
IMGUI_VERSION_NUM="19280",
|
||||
IMGUI_WINDOW_HARD_MIN_SIZE="4.0f",
|
||||
IMSTB_TEXTEDIT_CHARTYPE="char",
|
||||
IMSTB_TEXTEDIT_GETWIDTH_NEWLINE="(-1.0f)",
|
||||
@@ -88,7 +88,6 @@ local t={
|
||||
["ImAtof(STR)"]="atof(STR)",
|
||||
["ImCeil(X)"]="ceilf(X)",
|
||||
["ImCos(X)"]="cosf(X)",
|
||||
ImDrawCallback_ResetRenderState="(ImDrawCallback)(-8)",
|
||||
["ImFabs(X)"]="fabsf(X)",
|
||||
["ImFmod(X,Y)"]="fmodf((X), (Y))",
|
||||
ImFontAtlasRectId_GenerationMask_="(0x3FF00000)",
|
||||
@@ -109,7 +108,7 @@ local t={
|
||||
ImGuiKey_Mouse_END="(ImGuiKey_MouseWheelY + 1)",
|
||||
ImGuiKey_NavGamepadActivate="(g.IO.ConfigNavSwapGamepadButtons ? ImGuiKey_GamepadFaceRight : ImGuiKey_GamepadFaceDown)",
|
||||
ImGuiKey_NavGamepadCancel="(g.IO.ConfigNavSwapGamepadButtons ? ImGuiKey_GamepadFaceDown : ImGuiKey_GamepadFaceRight)",
|
||||
ImGuiKey_NavGamepadInput="ImGuiKey_GamepadFaceUp",
|
||||
ImGuiKey_NavGamepadContextMenu="ImGuiKey_GamepadFaceUp",
|
||||
ImGuiKey_NavGamepadMenu="ImGuiKey_GamepadFaceLeft",
|
||||
ImGuiKey_NavGamepadTweakFast="ImGuiKey_GamepadR1",
|
||||
ImGuiKey_NavGamepadTweakSlow="ImGuiKey_GamepadL1",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -489,7 +489,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
"location": "imgui_impl_opengl2:38",
|
||||
"location": "imgui_impl_opengl2:39",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
"ret": "bool",
|
||||
"signature": "()",
|
||||
@@ -506,7 +506,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
"location": "imgui_impl_opengl2:39",
|
||||
"location": "imgui_impl_opengl2:40",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
@@ -523,7 +523,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_Init",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_Init",
|
||||
"location": "imgui_impl_opengl2:32",
|
||||
"location": "imgui_impl_opengl2:33",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_Init",
|
||||
"ret": "bool",
|
||||
"signature": "()",
|
||||
@@ -540,7 +540,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_NewFrame",
|
||||
"location": "imgui_impl_opengl2:34",
|
||||
"location": "imgui_impl_opengl2:35",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_NewFrame",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
@@ -562,7 +562,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_RenderDrawData",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_RenderDrawData",
|
||||
"location": "imgui_impl_opengl2:35",
|
||||
"location": "imgui_impl_opengl2:36",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_RenderDrawData",
|
||||
"ret": "void",
|
||||
"signature": "(ImDrawData*)",
|
||||
@@ -579,7 +579,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_Shutdown",
|
||||
"location": "imgui_impl_opengl2:33",
|
||||
"location": "imgui_impl_opengl2:34",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_Shutdown",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
@@ -601,7 +601,7 @@
|
||||
"cimguiname": "ImGui_ImplOpenGL2_UpdateTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplOpenGL2_UpdateTexture",
|
||||
"location": "imgui_impl_opengl2:42",
|
||||
"location": "imgui_impl_opengl2:43",
|
||||
"ov_cimguiname": "ImGui_ImplOpenGL2_UpdateTexture",
|
||||
"ret": "void",
|
||||
"signature": "(ImTextureData*)",
|
||||
@@ -1363,7 +1363,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
"location": "imgui_impl_vulkan:207",
|
||||
"location": "imgui_impl_vulkan:211",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
"ret": "void",
|
||||
"signature": "(VkInstance,VkPhysicalDevice,VkDevice,ImGui_ImplVulkanH_Window*,uint32_t,const VkAllocationCallbacks*,int,int,uint32_t,VkImageUsageFlags)",
|
||||
@@ -1397,7 +1397,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_DestroyWindow",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_DestroyWindow",
|
||||
"location": "imgui_impl_vulkan:208",
|
||||
"location": "imgui_impl_vulkan:212",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_DestroyWindow",
|
||||
"ret": "void",
|
||||
"signature": "(VkInstance,VkDevice,ImGui_ImplVulkanH_Window*,const VkAllocationCallbacks*)",
|
||||
@@ -1419,7 +1419,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
"location": "imgui_impl_vulkan:213",
|
||||
"location": "imgui_impl_vulkan:217",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
"ret": "int",
|
||||
"signature": "(VkPresentModeKHR)",
|
||||
@@ -1441,7 +1441,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
"location": "imgui_impl_vulkan:214",
|
||||
"location": "imgui_impl_vulkan:218",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
"ret": "ImGui_ImplVulkanH_Window*",
|
||||
"signature": "(ImGuiViewport*)",
|
||||
@@ -1463,7 +1463,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
"location": "imgui_impl_vulkan:211",
|
||||
"location": "imgui_impl_vulkan:215",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
"ret": "VkPhysicalDevice",
|
||||
"signature": "(VkInstance)",
|
||||
@@ -1497,7 +1497,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectPresentMode",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectPresentMode",
|
||||
"location": "imgui_impl_vulkan:210",
|
||||
"location": "imgui_impl_vulkan:214",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_SelectPresentMode",
|
||||
"ret": "VkPresentModeKHR",
|
||||
"signature": "(VkPhysicalDevice,VkSurfaceKHR,const VkPresentModeKHR*,int)",
|
||||
@@ -1519,7 +1519,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
"location": "imgui_impl_vulkan:212",
|
||||
"location": "imgui_impl_vulkan:216",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
"ret": "uint32_t",
|
||||
"signature": "(VkPhysicalDevice)",
|
||||
@@ -1557,7 +1557,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
"location": "imgui_impl_vulkan:209",
|
||||
"location": "imgui_impl_vulkan:213",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
"ret": "VkSurfaceFormatKHR",
|
||||
"signature": "(VkPhysicalDevice,VkSurfaceKHR,const VkFormat*,int,VkColorSpaceKHR)",
|
||||
@@ -1575,7 +1575,8 @@
|
||||
"constructor": true,
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkanH_Window",
|
||||
"location": "imgui_impl_vulkan:259",
|
||||
"location": "imgui_impl_vulkan:263",
|
||||
"namespace": "ImGui_ImplVulkanH_Window",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
|
||||
"signature": "()",
|
||||
"stname": "ImGui_ImplVulkanH_Window"
|
||||
@@ -1594,7 +1595,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkanH_Window_destroy",
|
||||
"defaults": {},
|
||||
"destructor": true,
|
||||
"location": "imgui_impl_vulkan:259",
|
||||
"location": "imgui_impl_vulkan:263",
|
||||
"ov_cimguiname": "ImGui_ImplVulkanH_Window_destroy",
|
||||
"ret": "void",
|
||||
"signature": "(ImGui_ImplVulkanH_Window*)",
|
||||
@@ -1603,12 +1604,8 @@
|
||||
],
|
||||
"ImGui_ImplVulkan_AddTexture": [
|
||||
{
|
||||
"args": "(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
|
||||
"args": "(VkImageView image_view,VkImageLayout image_layout)",
|
||||
"argsT": [
|
||||
{
|
||||
"name": "sampler",
|
||||
"type": "VkSampler"
|
||||
},
|
||||
{
|
||||
"name": "image_view",
|
||||
"type": "VkImageView"
|
||||
@@ -1618,16 +1615,16 @@
|
||||
"type": "VkImageLayout"
|
||||
}
|
||||
],
|
||||
"argsoriginal": "(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
|
||||
"call_args": "(sampler,image_view,image_layout)",
|
||||
"call_args_old": "(sampler,image_view,image_layout)",
|
||||
"argsoriginal": "(VkImageView image_view,VkImageLayout image_layout)",
|
||||
"call_args": "(image_view,image_layout)",
|
||||
"call_args_old": "(image_view,image_layout)",
|
||||
"cimguiname": "ImGui_ImplVulkan_AddTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_AddTexture",
|
||||
"location": "imgui_impl_vulkan:165",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_AddTexture",
|
||||
"ret": "VkDescriptorSet",
|
||||
"signature": "(VkSampler,VkImageView,VkImageLayout)",
|
||||
"signature": "(VkImageView,VkImageLayout)",
|
||||
"stname": ""
|
||||
}
|
||||
],
|
||||
@@ -1646,7 +1643,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkan_CreateMainPipeline",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_CreateMainPipeline",
|
||||
"location": "imgui_impl_vulkan:157",
|
||||
"location": "imgui_impl_vulkan:159",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_CreateMainPipeline",
|
||||
"ret": "void",
|
||||
"signature": "(const ImGui_ImplVulkan_PipelineInfo*)",
|
||||
@@ -1668,7 +1665,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkan_Init",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_Init",
|
||||
"location": "imgui_impl_vulkan:148",
|
||||
"location": "imgui_impl_vulkan:150",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_Init",
|
||||
"ret": "bool",
|
||||
"signature": "(ImGui_ImplVulkan_InitInfo*)",
|
||||
@@ -1700,7 +1697,7 @@
|
||||
"user_data": "nullptr"
|
||||
},
|
||||
"funcname": "ImGui_ImplVulkan_LoadFunctions",
|
||||
"location": "imgui_impl_vulkan:170",
|
||||
"location": "imgui_impl_vulkan:174",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_LoadFunctions",
|
||||
"ret": "bool",
|
||||
"signature": "(uint32_t,PFN_vkVoidFunction(*loader_func)(const char* function_name,void*,void*)",
|
||||
@@ -1717,7 +1714,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkan_NewFrame",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_NewFrame",
|
||||
"location": "imgui_impl_vulkan:150",
|
||||
"location": "imgui_impl_vulkan:152",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_NewFrame",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
@@ -1771,7 +1768,7 @@
|
||||
"pipeline": "0ULL"
|
||||
},
|
||||
"funcname": "ImGui_ImplVulkan_RenderDrawData",
|
||||
"location": "imgui_impl_vulkan:151",
|
||||
"location": "imgui_impl_vulkan:153",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_RenderDrawData",
|
||||
"ret": "void",
|
||||
"signature": "(ImDrawData*,VkCommandBuffer,VkPipeline)",
|
||||
@@ -1793,7 +1790,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkan_SetMinImageCount",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_SetMinImageCount",
|
||||
"location": "imgui_impl_vulkan:152",
|
||||
"location": "imgui_impl_vulkan:154",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_SetMinImageCount",
|
||||
"ret": "void",
|
||||
"signature": "(uint32_t)",
|
||||
@@ -1810,7 +1807,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkan_Shutdown",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_Shutdown",
|
||||
"location": "imgui_impl_vulkan:149",
|
||||
"location": "imgui_impl_vulkan:151",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_Shutdown",
|
||||
"ret": "void",
|
||||
"signature": "()",
|
||||
@@ -1832,7 +1829,7 @@
|
||||
"cimguiname": "ImGui_ImplVulkan_UpdateTexture",
|
||||
"defaults": {},
|
||||
"funcname": "ImGui_ImplVulkan_UpdateTexture",
|
||||
"location": "imgui_impl_vulkan:160",
|
||||
"location": "imgui_impl_vulkan:162",
|
||||
"ov_cimguiname": "ImGui_ImplVulkan_UpdateTexture",
|
||||
"ret": "void",
|
||||
"signature": "(ImTextureData*)",
|
||||
|
||||
@@ -418,7 +418,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
location="imgui_impl_opengl2:38",
|
||||
location="imgui_impl_opengl2:39",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_CreateDeviceObjects",
|
||||
ret="bool",
|
||||
signature="()",
|
||||
@@ -434,7 +434,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
location="imgui_impl_opengl2:39",
|
||||
location="imgui_impl_opengl2:40",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_DestroyDeviceObjects",
|
||||
ret="void",
|
||||
signature="()",
|
||||
@@ -450,7 +450,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_Init",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_Init",
|
||||
location="imgui_impl_opengl2:32",
|
||||
location="imgui_impl_opengl2:33",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_Init",
|
||||
ret="bool",
|
||||
signature="()",
|
||||
@@ -466,7 +466,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_NewFrame",
|
||||
location="imgui_impl_opengl2:34",
|
||||
location="imgui_impl_opengl2:35",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_NewFrame",
|
||||
ret="void",
|
||||
signature="()",
|
||||
@@ -485,7 +485,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_RenderDrawData",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_RenderDrawData",
|
||||
location="imgui_impl_opengl2:35",
|
||||
location="imgui_impl_opengl2:36",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_RenderDrawData",
|
||||
ret="void",
|
||||
signature="(ImDrawData*)",
|
||||
@@ -501,7 +501,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_Shutdown",
|
||||
location="imgui_impl_opengl2:33",
|
||||
location="imgui_impl_opengl2:34",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_Shutdown",
|
||||
ret="void",
|
||||
signature="()",
|
||||
@@ -520,7 +520,7 @@ local t={
|
||||
cimguiname="ImGui_ImplOpenGL2_UpdateTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplOpenGL2_UpdateTexture",
|
||||
location="imgui_impl_opengl2:42",
|
||||
location="imgui_impl_opengl2:43",
|
||||
ov_cimguiname="ImGui_ImplOpenGL2_UpdateTexture",
|
||||
ret="void",
|
||||
signature="(ImTextureData*)",
|
||||
@@ -1179,7 +1179,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
location="imgui_impl_vulkan:207",
|
||||
location="imgui_impl_vulkan:211",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_CreateOrResizeWindow",
|
||||
ret="void",
|
||||
signature="(VkInstance,VkPhysicalDevice,VkDevice,ImGui_ImplVulkanH_Window*,uint32_t,const VkAllocationCallbacks*,int,int,uint32_t,VkImageUsageFlags)",
|
||||
@@ -1207,7 +1207,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_DestroyWindow",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_DestroyWindow",
|
||||
location="imgui_impl_vulkan:208",
|
||||
location="imgui_impl_vulkan:212",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_DestroyWindow",
|
||||
ret="void",
|
||||
signature="(VkInstance,VkDevice,ImGui_ImplVulkanH_Window*,const VkAllocationCallbacks*)",
|
||||
@@ -1226,7 +1226,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
location="imgui_impl_vulkan:213",
|
||||
location="imgui_impl_vulkan:217",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
|
||||
ret="int",
|
||||
signature="(VkPresentModeKHR)",
|
||||
@@ -1245,7 +1245,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
location="imgui_impl_vulkan:214",
|
||||
location="imgui_impl_vulkan:218",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_GetWindowDataFromViewport",
|
||||
ret="ImGui_ImplVulkanH_Window*",
|
||||
signature="(ImGuiViewport*)",
|
||||
@@ -1264,7 +1264,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
location="imgui_impl_vulkan:211",
|
||||
location="imgui_impl_vulkan:215",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_SelectPhysicalDevice",
|
||||
ret="VkPhysicalDevice",
|
||||
signature="(VkInstance)",
|
||||
@@ -1292,7 +1292,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_SelectPresentMode",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectPresentMode",
|
||||
location="imgui_impl_vulkan:210",
|
||||
location="imgui_impl_vulkan:214",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_SelectPresentMode",
|
||||
ret="VkPresentModeKHR",
|
||||
signature="(VkPhysicalDevice,VkSurfaceKHR,const VkPresentModeKHR*,int)",
|
||||
@@ -1311,7 +1311,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
location="imgui_impl_vulkan:212",
|
||||
location="imgui_impl_vulkan:216",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
|
||||
ret="uint32_t",
|
||||
signature="(VkPhysicalDevice)",
|
||||
@@ -1342,7 +1342,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
location="imgui_impl_vulkan:209",
|
||||
location="imgui_impl_vulkan:213",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_SelectSurfaceFormat",
|
||||
ret="VkSurfaceFormatKHR",
|
||||
signature="(VkPhysicalDevice,VkSurfaceKHR,const VkFormat*,int,VkColorSpaceKHR)",
|
||||
@@ -1359,7 +1359,8 @@ local t={
|
||||
constructor=true,
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkanH_Window",
|
||||
location="imgui_impl_vulkan:259",
|
||||
location="imgui_impl_vulkan:263",
|
||||
namespace="ImGui_ImplVulkanH_Window",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
|
||||
signature="()",
|
||||
stname="ImGui_ImplVulkanH_Window"},
|
||||
@@ -1375,7 +1376,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkanH_Window_destroy",
|
||||
defaults={},
|
||||
destructor=true,
|
||||
location="imgui_impl_vulkan:259",
|
||||
location="imgui_impl_vulkan:263",
|
||||
ov_cimguiname="ImGui_ImplVulkanH_Window_destroy",
|
||||
ret="void",
|
||||
signature="(ImGui_ImplVulkanH_Window*)",
|
||||
@@ -1383,29 +1384,26 @@ local t={
|
||||
["(ImGui_ImplVulkanH_Window*)"]=nil},
|
||||
ImGui_ImplVulkan_AddTexture={
|
||||
[1]={
|
||||
args="(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
|
||||
args="(VkImageView image_view,VkImageLayout image_layout)",
|
||||
argsT={
|
||||
[1]={
|
||||
name="sampler",
|
||||
type="VkSampler"},
|
||||
[2]={
|
||||
name="image_view",
|
||||
type="VkImageView"},
|
||||
[3]={
|
||||
[2]={
|
||||
name="image_layout",
|
||||
type="VkImageLayout"}},
|
||||
argsoriginal="(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
|
||||
call_args="(sampler,image_view,image_layout)",
|
||||
call_args_old="(sampler,image_view,image_layout)",
|
||||
argsoriginal="(VkImageView image_view,VkImageLayout image_layout)",
|
||||
call_args="(image_view,image_layout)",
|
||||
call_args_old="(image_view,image_layout)",
|
||||
cimguiname="ImGui_ImplVulkan_AddTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_AddTexture",
|
||||
location="imgui_impl_vulkan:165",
|
||||
ov_cimguiname="ImGui_ImplVulkan_AddTexture",
|
||||
ret="VkDescriptorSet",
|
||||
signature="(VkSampler,VkImageView,VkImageLayout)",
|
||||
signature="(VkImageView,VkImageLayout)",
|
||||
stname=""},
|
||||
["(VkSampler,VkImageView,VkImageLayout)"]=nil},
|
||||
["(VkImageView,VkImageLayout)"]=nil},
|
||||
ImGui_ImplVulkan_CreateMainPipeline={
|
||||
[1]={
|
||||
args="(const ImGui_ImplVulkan_PipelineInfo* info)",
|
||||
@@ -1419,7 +1417,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkan_CreateMainPipeline",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_CreateMainPipeline",
|
||||
location="imgui_impl_vulkan:157",
|
||||
location="imgui_impl_vulkan:159",
|
||||
ov_cimguiname="ImGui_ImplVulkan_CreateMainPipeline",
|
||||
ret="void",
|
||||
signature="(const ImGui_ImplVulkan_PipelineInfo*)",
|
||||
@@ -1438,7 +1436,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkan_Init",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_Init",
|
||||
location="imgui_impl_vulkan:148",
|
||||
location="imgui_impl_vulkan:150",
|
||||
ov_cimguiname="ImGui_ImplVulkan_Init",
|
||||
ret="bool",
|
||||
signature="(ImGui_ImplVulkan_InitInfo*)",
|
||||
@@ -1464,7 +1462,7 @@ local t={
|
||||
defaults={
|
||||
user_data="nullptr"},
|
||||
funcname="ImGui_ImplVulkan_LoadFunctions",
|
||||
location="imgui_impl_vulkan:170",
|
||||
location="imgui_impl_vulkan:174",
|
||||
ov_cimguiname="ImGui_ImplVulkan_LoadFunctions",
|
||||
ret="bool",
|
||||
signature="(uint32_t,PFN_vkVoidFunction(*loader_func)(const char* function_name,void*,void*)",
|
||||
@@ -1480,7 +1478,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkan_NewFrame",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_NewFrame",
|
||||
location="imgui_impl_vulkan:150",
|
||||
location="imgui_impl_vulkan:152",
|
||||
ov_cimguiname="ImGui_ImplVulkan_NewFrame",
|
||||
ret="void",
|
||||
signature="()",
|
||||
@@ -1525,7 +1523,7 @@ local t={
|
||||
defaults={
|
||||
pipeline="0ULL"},
|
||||
funcname="ImGui_ImplVulkan_RenderDrawData",
|
||||
location="imgui_impl_vulkan:151",
|
||||
location="imgui_impl_vulkan:153",
|
||||
ov_cimguiname="ImGui_ImplVulkan_RenderDrawData",
|
||||
ret="void",
|
||||
signature="(ImDrawData*,VkCommandBuffer,VkPipeline)",
|
||||
@@ -1544,7 +1542,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkan_SetMinImageCount",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_SetMinImageCount",
|
||||
location="imgui_impl_vulkan:152",
|
||||
location="imgui_impl_vulkan:154",
|
||||
ov_cimguiname="ImGui_ImplVulkan_SetMinImageCount",
|
||||
ret="void",
|
||||
signature="(uint32_t)",
|
||||
@@ -1560,7 +1558,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkan_Shutdown",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_Shutdown",
|
||||
location="imgui_impl_vulkan:149",
|
||||
location="imgui_impl_vulkan:151",
|
||||
ov_cimguiname="ImGui_ImplVulkan_Shutdown",
|
||||
ret="void",
|
||||
signature="()",
|
||||
@@ -1579,7 +1577,7 @@ local t={
|
||||
cimguiname="ImGui_ImplVulkan_UpdateTexture",
|
||||
defaults={},
|
||||
funcname="ImGui_ImplVulkan_UpdateTexture",
|
||||
location="imgui_impl_vulkan:160",
|
||||
location="imgui_impl_vulkan:162",
|
||||
ov_cimguiname="ImGui_ImplVulkan_UpdateTexture",
|
||||
ret="void",
|
||||
signature="(ImTextureData*)",
|
||||
@@ -1653,7 +1651,7 @@ t.ImGui_ImplVulkanH_SelectQueueFamilyIndex["(VkPhysicalDevice)"]=t.ImGui_ImplVul
|
||||
t.ImGui_ImplVulkanH_SelectSurfaceFormat["(VkPhysicalDevice,VkSurfaceKHR,const VkFormat*,int,VkColorSpaceKHR)"]=t.ImGui_ImplVulkanH_SelectSurfaceFormat[1]
|
||||
t.ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window["()"]=t.ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window[1]
|
||||
t.ImGui_ImplVulkanH_Window_destroy["(ImGui_ImplVulkanH_Window*)"]=t.ImGui_ImplVulkanH_Window_destroy[1]
|
||||
t.ImGui_ImplVulkan_AddTexture["(VkSampler,VkImageView,VkImageLayout)"]=t.ImGui_ImplVulkan_AddTexture[1]
|
||||
t.ImGui_ImplVulkan_AddTexture["(VkImageView,VkImageLayout)"]=t.ImGui_ImplVulkan_AddTexture[1]
|
||||
t.ImGui_ImplVulkan_CreateMainPipeline["(const ImGui_ImplVulkan_PipelineInfo*)"]=t.ImGui_ImplVulkan_CreateMainPipeline[1]
|
||||
t.ImGui_ImplVulkan_Init["(ImGui_ImplVulkan_InitInfo*)"]=t.ImGui_ImplVulkan_Init[1]
|
||||
t.ImGui_ImplVulkan_LoadFunctions["(uint32_t,PFN_vkVoidFunction(*loader_func)(const char* function_name,void*,void*)"]=t.ImGui_ImplVulkan_LoadFunctions[1]
|
||||
|
||||
@@ -239,8 +239,8 @@ igSelectable 2
|
||||
1 bool igSelectable_Bool (const char*,bool,ImGuiSelectableFlags,const ImVec2)
|
||||
2 bool igSelectable_BoolPtr (const char*,bool*,ImGuiSelectableFlags,const ImVec2)
|
||||
igSetItemKeyOwner 2
|
||||
1 void igSetItemKeyOwner_Nil (ImGuiKey)
|
||||
2 void igSetItemKeyOwner_InputFlags (ImGuiKey,ImGuiInputFlags)
|
||||
1 bool igSetItemKeyOwner_Nil (ImGuiKey)
|
||||
2 bool igSetItemKeyOwner_InputFlags (ImGuiKey,ImGuiInputFlags)
|
||||
igSetScrollFromPosX 2
|
||||
1 void igSetScrollFromPosX_Float (float,float)
|
||||
2 void igSetScrollFromPosX_WindowPtr (ImGuiWindow*,float,float)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -57,6 +57,7 @@
|
||||
"ImGuiDebugAllocInfo": "struct ImGuiDebugAllocInfo",
|
||||
"ImGuiDebugItemPathQuery": "struct ImGuiDebugItemPathQuery",
|
||||
"ImGuiDebugLogFlags": "int",
|
||||
"ImGuiDemoMarkerCallback": "void (*)(const char* file, int line, const char* section);",
|
||||
"ImGuiDockContext": "struct ImGuiDockContext",
|
||||
"ImGuiDockNode": "struct ImGuiDockNode",
|
||||
"ImGuiDockNodeFlags": "int",
|
||||
|
||||
@@ -57,6 +57,7 @@ local t={
|
||||
ImGuiDebugAllocInfo="struct ImGuiDebugAllocInfo",
|
||||
ImGuiDebugItemPathQuery="struct ImGuiDebugItemPathQuery",
|
||||
ImGuiDebugLogFlags="int",
|
||||
ImGuiDemoMarkerCallback="void (*)(const char* file, int line, const char* section);",
|
||||
ImGuiDockContext="struct ImGuiDockContext",
|
||||
ImGuiDockNode="struct ImGuiDockNode",
|
||||
ImGuiDockNodeFlags="int",
|
||||
|
||||
2
imgui
2
imgui
Submodule imgui updated: 2a1b69f057...b61e56346a
Reference in New Issue
Block a user