Compare commits

..

18 Commits

Author SHA1 Message Date
sonoro1234
03e6c8d1f2 pull imgui 1.91.9bdock and generate 2025-03-20 01:39:06 +01:00
sonoro1234
50c60f3da6 IMGUI_HAS_TEXTURES do nothing 2025-03-20 01:34:34 +01:00
sonoro1234
140d107be5 improve customization (see PR #290) 2025-03-18 13:20:46 +01:00
sonoro1234
c32d1c0c9b dont name igGetIO overload as the generic name of function (C++ name) solves issue #289 2025-03-15 17:51:30 +01:00
sonoro1234
3530b937f1 generation 2025-03-15 17:03:47 +01:00
Victor Bombi
bb6f212993 Merge pull request #288 from spencercw/vulkan
generator.lua: fix missing void in Vulkan function generation
2025-03-15 16:57:30 +01:00
Chris Spencer
e3af31fb9c generator.lua: fix missing void in Vulkan function generation 2025-03-15 11:57:14 +00:00
sonoro1234
de213c9105 pull imgui 1.91.9 docking and generate 2025-03-15 08:17:37 +01:00
sonoro1234
4bd8b6dbbd get defines also for cl 2025-03-12 02:35:06 +01:00
sonoro1234
a1dbf23597 IMGUI_HAS_TEXTURES ImTextureID -> ImTextureUserID 2025-03-07 10:51:45 +01:00
sonoro1234
f2e203b05a cpp2ffi: rule out T* in templates 2025-03-07 08:53:51 +01:00
sonoro1234
429ffc930d update README.md 2025-02-22 12:32:10 +01:00
sonoro1234
95dec01325 cimgui_impl: reworked 2025-02-22 12:11:25 +01:00
sonoro1234
79504e6f7c ClearEnable = true 2025-02-21 20:30:58 +01:00
sonoro1234
4edec25945 generation for vulkan 2025-02-21 16:57:56 +01:00
sonoro1234
daac7262b3 example_sdl_vulkan tries to emulate imgui 2025-02-21 16:56:14 +01:00
sonoro1234
2e5db87e99 backends: use cmake FetchContent for SDL2 examples 2025-02-05 17:53:05 +01:00
sonoro1234
387e5e0d8b generator.lua: corrections for Vulkan generation as now needs ImVector, also corrections in example_sdl_vulkan/main.c for last breaking changes. 2025-02-04 18:51:13 +01:00
33 changed files with 6427 additions and 4908 deletions

View File

@@ -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) 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: Notes:
* currently this wrapper is based on version [1.91.8 of Dear ImGui with internal api] * currently this wrapper is based on version [1.91.9 of Dear ImGui with internal api]
* only functions, structs and enums from imgui.h (an optionally imgui_internal.h) are wrapped. * 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. * 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. * 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.
@@ -92,10 +92,10 @@ Notes:
* methods have the same parameter list and return values (where possible) * methods have the same parameter list and return values (where possible)
* functions that belong to a struct have an extra first argument with a pointer to the struct. * functions that belong to a struct have an extra first argument with a pointer to the struct.
* where a function returns UDT (user defined type) by value some compilers complain so the function is generated accepting a pointer to the UDT type as the first argument (or second if belongs to a struct). * where a function returns UDT (user defined type) by value some compilers complain so the function is generated accepting a pointer to the UDT type as the first argument (or second if belongs to a struct).
* constructors return pointer to struct and has been named Struct_name_Struct_name
# usage with backends # usage with backends
* look at backend_test folder for a cmake module building with SDL and opengl3, glfw and opengl3, SDL and Vulkan * look at backend_test folder for a cmake module building with SDL and opengl3, glfw and opengl3, SDL and Vulkan, glfw and dx11
* read [How can cimgui backends be used](https://github.com/cimgui/cimgui/issues/157) * read [How can cimgui backends be used](https://github.com/cimgui/cimgui/issues/157)
# example bindings based on cimgui # example bindings based on cimgui

View File

@@ -102,7 +102,6 @@ target_link_libraries(cimgui ${IMGUI_LIBRARIES} glfw)
# using library # using library
include_directories(../../generator/output/)
add_executable(${PROJECT_NAME} main.c) add_executable(${PROJECT_NAME} main.c)
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCIMGUI_USE_DX11 -DCIMGUI_USE_GLFW) target_compile_definitions(${PROJECT_NAME} PUBLIC -DCIMGUI_USE_DX11 -DCIMGUI_USE_GLFW)
target_link_libraries(${PROJECT_NAME} d3d11 d3dcompiler.lib cimgui) target_link_libraries(${PROJECT_NAME} d3d11 d3dcompiler.lib cimgui)

View File

@@ -24,6 +24,8 @@
#define igButton igButton_Str #define igButton igButton_Str
#endif #endif
#define igGetIO igGetIO_Nil
GLFWwindow *window; GLFWwindow *window;
// Data // Data

View File

@@ -106,7 +106,6 @@ target_link_libraries(cimgui ${IMGUI_LIBRARIES} glfw)
# using library # using library
include_directories(../../generator/output/)
add_executable(${PROJECT_NAME} main.c) add_executable(${PROJECT_NAME} main.c)
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_GLFW) target_compile_definitions(${PROJECT_NAME} PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_GLFW)
target_link_libraries(${PROJECT_NAME} cimgui) target_link_libraries(${PROJECT_NAME} cimgui)

View File

@@ -17,6 +17,8 @@
#define igButton igButton_Str #define igButton igButton_Str
#endif #endif
#define igGetIO igGetIO_Nil
GLFWwindow *window; GLFWwindow *window;
int main(int argc, char *argv[]) int main(int argc, char *argv[])

View File

@@ -22,8 +22,6 @@ else()
endif() endif()
include_directories(../../imgui) include_directories(../../imgui)
add_definitions("-DIMGUI_USER_CONFIG=\"../cimconfig.h\"")
add_definitions("-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS=1")
include_directories(../../) include_directories(../../)
set(IMGUI_SOURCES set(IMGUI_SOURCES
@@ -38,11 +36,7 @@ ${TABLES_SOURCE}
set(IMGUI_SOURCES_sdl) set(IMGUI_SOURCES_sdl)
set(IMGUI_LIBRARIES ) set(IMGUI_LIBRARIES )
if (WIN32)
add_definitions("-DIMGUI_IMPL_API=extern \"C\" __declspec\(dllexport\)")
else(WIN32)
add_definitions("-DIMGUI_IMPL_API=extern \"C\" ")
endif(WIN32)
add_compile_definitions("IMGUI_IMPL_OPENGL_LOADER_GL3W") add_compile_definitions("IMGUI_IMPL_OPENGL_LOADER_GL3W")
@@ -66,47 +60,46 @@ else(WIN32)#Unix
endif(WIN32) endif(WIN32)
#sdl2
list(APPEND IMGUI_SOURCES ${BAKENDS_FOLDER}imgui_impl_sdl2.cpp) list(APPEND IMGUI_SOURCES ${BAKENDS_FOLDER}imgui_impl_sdl2.cpp)
if(DEFINED SDL_PATH) include(FetchContent)
message(STATUS "SDL_PATH defined as " ${SDL_PATH}) Set(FETCHCONTENT_QUIET FALSE)
FIND_PACKAGE(SDL2 PATHS ${SDL_PATH})
else(DEFINED SDL_PATH)
# If SDL_PATH is not set, fallback and attempt to find SDL cmake script at a default location
find_package(SDL2)
endif(DEFINED SDL_PATH)
if(SDL2_FOUND) FetchContent_Declare(
get_target_property(SDL_INCLUDE SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES) SDL2
message(STATUS "sdlinclude is " ${SDL_INCLUDE}) GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
if ("${SDL_INCLUDE}" STREQUAL "" OR "${SDL_INCLUDE}" STREQUAL "SDL_INCLUDE-NOTFOUND") #if not found latest SDL2 cmake config use older GIT_TAG release-2.30.12
message(STATUS "sdlinclude2 is " ${SDL2_INCLUDE_DIRS}) #GIT_SHALLOW TRUE
include_directories(${SDL2_INCLUDE_DIRS}) GIT_PROGRESS TRUE
set(IMGUI_SDL_LIBRARY ${SDL2_LIBRARIES}) )
message(STATUS IMGUI_SDL_LIBRARY ${SDL2_LIBRARIES}) #FetchContent_MakeAvailable(SDL2)
else()#use new one SDL2 config FetchContent_GetProperties(SDL2)
include_directories(${SDL_INCLUDE}) if (NOT sdl2_POPULATED)
set(IMGUI_SDL_LIBRARY SDL2::SDL2) set(FETCHCONTENT_QUIET NO)
set(SDL_MAIN SDL2::SDL2main) FetchContent_Populate(SDL2)
message(STATUS ${SDL_MAIN} ${IMGUI_SDL_LIBRARY}) set(SDL_TEST OFF CACHE BOOL "" FORCE)
endif() set(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
else(SDL2_FOUND) add_subdirectory(${sdl2_SOURCE_DIR} ${sdl2_BINARY_DIR})
if(DEFINED SDL_PATH) endif()
message(FATAL_ERROR "Cannot find SDL at SDL_PATH") include_directories(${SDL2_SOURCE_DIR}/include})
else(DEFINED SDL_PATH)
message(FATAL_ERROR "Cannot find SDL. Maybe try specifying SDL_PATH?") #if dynamic SDL2 then install
endif(DEFINED SDL_PATH) install(TARGETS SDL2 RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
endif(SDL2_FOUND) LIBRARY DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
)
add_library(cimgui_sdl SHARED ${IMGUI_SOURCES}) add_library(cimgui_sdl SHARED ${IMGUI_SOURCES})
target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} ${IMGUI_SDL_LIBRARY}) target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS=1")
if (WIN32)
target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_IMPL_API=extern \"C\" __declspec\(dllexport\)")
else(WIN32)
target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_IMPL_API=extern \"C\" ")
endif(WIN32)
target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} SDL2)
#using library #using library
include_directories(../../generator/output/)
add_executable(test_sdl main.c) add_executable(test_sdl main.c)
target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL2) target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL2)
if (MINGW) if (MINGW)
target_link_options(test_sdl PRIVATE "-mconsole") target_link_options(test_sdl PRIVATE "-mconsole")
endif() endif()
target_link_libraries(test_sdl ${IMGUI_SDL_LIBRARY} cimgui_sdl) target_link_libraries(test_sdl SDL2 cimgui_sdl)

View File

@@ -0,0 +1,2 @@
To build use `cmake path_to_example_sdl_opengl3` and then `make install`

View File

@@ -18,6 +18,8 @@
#define igButton igButton_Str #define igButton igButton_Str
#endif #endif
#define igGetIO igGetIO_Nil
SDL_Window *window = NULL; SDL_Window *window = NULL;
int main(int argc, char* argv[]) int main(int argc, char* argv[])

View File

@@ -18,12 +18,12 @@ else()
set(TABLES_SOURCE "") set(TABLES_SOURCE "")
endif() endif()
include_directories(../../imgui) include_directories(../../imgui ../../imgui/backends)
add_definitions("-DIMGUI_USER_CONFIG=\"../cimconfig.h\"")
add_definitions("-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS=1")
include_directories(../../) include_directories(../../)
set(IMGUI_SOURCES ../../cimgui.cpp set(IMGUI_SOURCES ../../cimgui.cpp
../../cimgui_impl.cpp
../../imgui/imgui.cpp ../../imgui/imgui.cpp
../../imgui/imgui_draw.cpp ../../imgui/imgui_draw.cpp
../../imgui/imgui_demo.cpp ../../imgui/imgui_demo.cpp
@@ -34,11 +34,6 @@ ${TABLES_SOURCE}
set(IMGUI_SOURCES_sdl) set(IMGUI_SOURCES_sdl)
set(IMGUI_LIBRARIES ) set(IMGUI_LIBRARIES )
if (WIN32)
add_definitions("-DIMGUI_IMPL_API=extern \"C\" __declspec\(dllexport\)")
else(WIN32)
add_definitions("-DIMGUI_IMPL_API=extern \"C\" ")
endif(WIN32)
#optional adding freetype #optional adding freetype
option(IMGUI_FREETYPE "add Freetype2" OFF) option(IMGUI_FREETYPE "add Freetype2" OFF)
@@ -54,48 +49,52 @@ endif(IMGUI_FREETYPE)
find_package(Vulkan REQUIRED FATAL_ERROR) find_package(Vulkan REQUIRED FATAL_ERROR)
list(APPEND IMGUI_LIBRARIES Vulkan::Vulkan) list(APPEND IMGUI_LIBRARIES Vulkan::Vulkan)
list(APPEND IMGUI_SOURCES ${BACKENDS_FOLDER}imgui_impl_vulkan.cpp) list(APPEND IMGUI_SOURCES ${BACKENDS_FOLDER}imgui_impl_vulkan.cpp)
include_directories(${Vulkan_INCLUDE_DIRS})
#sdl2 #sdl2
list(APPEND IMGUI_SOURCES ${BACKENDS_FOLDER}imgui_impl_sdl2.cpp) list(APPEND IMGUI_SOURCES ${BACKENDS_FOLDER}imgui_impl_sdl2.cpp)
if(DEFINED SDL_PATH) include(FetchContent)
message(STATUS "SDL_PATH defined as " ${SDL_PATH}) Set(FETCHCONTENT_QUIET FALSE)
FIND_PACKAGE(SDL2 PATHS ${SDL_PATH})
else(DEFINED SDL_PATH)
# If SDL_PATH is not set, fallback and attempt to find SDL cmake script at a default location
find_package(SDL2)
endif(DEFINED SDL_PATH)
if(SDL2_FOUND) FetchContent_Declare(
get_target_property(SDL_INCLUDE SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES) SDL2
message(STATUS "sdlinclude is " ${SDL_INCLUDE}) GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
if ("${SDL_INCLUDE}" STREQUAL "" OR "${SDL_INCLUDE}" STREQUAL "SDL_INCLUDE-NOTFOUND") #if not found latest SDL2 cmake config use older GIT_TAG release-2.30.12
message(STATUS "sdlinclude2 is " ${SDL2_INCLUDE_DIRS}) #GIT_SHALLOW TRUE
include_directories(${SDL2_INCLUDE_DIRS}) GIT_PROGRESS TRUE
set(IMGUI_SDL_LIBRARY ${SDL2_LIBRARIES}) )
message(STATUS IMGUI_SDL_LIBRARY ${SDL2_LIBRARIES}) FetchContent_GetProperties(SDL2)
else()#use new one SDL2 config if (NOT sdl2_POPULATED)
include_directories(${SDL_INCLUDE}) set(FETCHCONTENT_QUIET NO)
set(IMGUI_SDL_LIBRARY SDL2::SDL2) FetchContent_Populate(SDL2)
set(SDL_MAIN SDL2::SDL2main) set(SDL_TEST OFF CACHE BOOL "" FORCE)
message(STATUS ${SDL_MAIN} ${IMGUI_SDL_LIBRARY}) set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
endif() add_subdirectory(${sdl2_SOURCE_DIR} ${sdl2_BINARY_DIR})
else(SDL2_FOUND) endif()
if(DEFINED SDL_PATH) include_directories(${SDL2_SOURCE_DIR}/include)
message(FATAL_ERROR "Cannot find SDL at SDL_PATH")
else(DEFINED SDL_PATH)
message(FATAL_ERROR "Cannot find SDL. Maybe try specifying SDL_PATH?")
endif(DEFINED SDL_PATH)
endif(SDL2_FOUND)
add_library(cimgui_sdl SHARED ${IMGUI_SOURCES})
target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} ${IMGUI_SDL_LIBRARY}) #if dynamic SDL2 then install
# install(TARGETS SDL2 RUNTIME DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
# LIBRARY DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
# )
add_library(cimgui_sdl STATIC ${IMGUI_SOURCES})
target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_USER_CONFIG=\"../cimconfig.h\"")
target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS=1")
target_compile_definitions(cimgui_sdl PUBLIC -DCIMGUI_USE_VULKAN -DCIMGUI_USE_SDL2)
if (WIN32)
target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_IMPL_API=extern \"C\" __declspec\(dllexport\)")
else(WIN32)
target_compile_definitions(cimgui_sdl PUBLIC "-DIMGUI_IMPL_API=extern \"C\" ")
endif(WIN32)
#target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} SDL2-static)
#using library #using library
include_directories(../../generator/output/)
add_executable(test_sdl main.c) add_executable(test_sdl main.c)
target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_VULKAN -DCIMGUI_USE_SDL2) target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_VULKAN -DCIMGUI_USE_SDL2)
if (MINGW) if (MINGW)
target_link_options(test_sdl PRIVATE "-mconsole") target_link_options(test_sdl PRIVATE "-mconsole")
endif() endif()
target_link_libraries(test_sdl ${IMGUI_SDL_LIBRARY} cimgui_sdl) target_link_libraries(test_sdl SDL2-static cimgui_sdl ${IMGUI_LIBRARIES})

View File

@@ -0,0 +1,3 @@
This example needs vulkan generation before compilation: Vulkan SDK should be installed and then add "vulkan" to generator.bat and generate.
To build use `cmake path_to_example_sdl_vulkan` and then `make install`

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.91.8" 19180 from Dear ImGui https://github.com/ocornut/imgui //based on imgui.h file version "1.91.9b" 19191 from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api //with imgui_internal.h api
//with imgui_freetype.h api //with imgui_freetype.h api
//docking branch //docking branch
@@ -53,11 +53,11 @@ CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx)
{ {
return ImGui::SetCurrentContext(ctx); return ImGui::SetCurrentContext(ctx);
} }
CIMGUI_API ImGuiIO* igGetIO() CIMGUI_API ImGuiIO* igGetIO_Nil()
{ {
return &ImGui::GetIO(); return &ImGui::GetIO();
} }
CIMGUI_API ImGuiPlatformIO* igGetPlatformIO() CIMGUI_API ImGuiPlatformIO* igGetPlatformIO_Nil()
{ {
return &ImGui::GetPlatformIO(); return &ImGui::GetPlatformIO();
} }
@@ -667,9 +667,13 @@ CIMGUI_API void igTextLinkOpenURL(const char* label,const char* url)
{ {
return ImGui::TextLinkOpenURL(label,url); return ImGui::TextLinkOpenURL(label,url);
} }
CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col) CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1)
{ {
return ImGui::Image(user_texture_id,image_size,uv0,uv1,tint_col,border_col); return ImGui::Image(user_texture_id,image_size,uv0,uv1);
}
CIMGUI_API void igImageWithBg(ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)
{
return ImGui::ImageWithBg(user_texture_id,image_size,uv0,uv1,bg_col,tint_col);
} }
CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col) CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col)
{ {
@@ -1960,6 +1964,10 @@ CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self)
{ {
return self->clear(); return self->clear();
} }
CIMGUI_API void ImGuiTextBuffer_resize(ImGuiTextBuffer* self,int size)
{
return self->resize(size);
}
CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity) CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity)
{ {
return self->reserve(capacity); return self->reserve(capacity);
@@ -2684,10 +2692,6 @@ CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlas
{ {
return self->CalcCustomRectUV(rect,out_uv_min,out_uv_max); return self->CalcCustomRectUV(rect,out_uv_min,out_uv_max);
} }
CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])
{
return self->GetMouseCursorTexData(cursor,out_offset,out_size,out_uv_border,out_uv_fill);
}
CIMGUI_API ImFont* ImFont_ImFont(void) CIMGUI_API ImFont* ImFont_ImFont(void)
{ {
return IM_NEW(ImFont)(); return IM_NEW(ImFont)();
@@ -2696,11 +2700,11 @@ CIMGUI_API void ImFont_destroy(ImFont* self)
{ {
IM_DELETE(self); IM_DELETE(self);
} }
CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c) CIMGUI_API ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c)
{ {
return self->FindGlyph(c); return self->FindGlyph(c);
} }
CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c) CIMGUI_API ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c)
{ {
return self->FindGlyphNoFallback(c); return self->FindGlyphNoFallback(c);
} }
@@ -2752,10 +2756,6 @@ CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool ov
{ {
return self->AddRemapChar(dst,src,overwrite_dst); return self->AddRemapChar(dst,src,overwrite_dst);
} }
CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible)
{
return self->SetGlyphVisible(c,visible);
}
CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last) CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last)
{ {
return self->IsGlyphRangeUnused(c_begin,c_last); return self->IsGlyphRangeUnused(c_begin,c_last);
@@ -2828,6 +2828,10 @@ CIMGUI_API int igImUpperPowerOfTwo(int v)
{ {
return ImUpperPowerOfTwo(v); return ImUpperPowerOfTwo(v);
} }
CIMGUI_API unsigned int igImCountSetBits(unsigned int v)
{
return ImCountSetBits(v);
}
CIMGUI_API int igImStricmp(const char* str1,const char* str2) CIMGUI_API int igImStricmp(const char* str1,const char* str2)
{ {
return ImStricmp(str1,str2); return ImStricmp(str1,str2);
@@ -3407,7 +3411,7 @@ CIMGUI_API void ImDrawDataBuilder_destroy(ImDrawDataBuilder* self)
{ {
IM_DELETE(self); IM_DELETE(self);
} }
CIMGUI_API void* ImGuiDataVarInfo_GetVarPtr(ImGuiDataVarInfo* self,void* parent) CIMGUI_API void* ImGuiStyleVarInfo_GetVarPtr(ImGuiStyleVarInfo* self,void* parent)
{ {
return self->GetVarPtr(parent); return self->GetVarPtr(parent);
} }
@@ -3995,13 +3999,13 @@ CIMGUI_API ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiT
{ {
return self->GetColumnSettings(); return self->GetColumnSettings();
} }
CIMGUI_API ImGuiIO* igGetIOEx(ImGuiContext* ctx) CIMGUI_API ImGuiIO* igGetIO_ContextPtr(ImGuiContext* ctx)
{ {
return &ImGui::GetIOEx(ctx); return &ImGui::GetIO(ctx);
} }
CIMGUI_API ImGuiPlatformIO* igGetPlatformIOEx(ImGuiContext* ctx) CIMGUI_API ImGuiPlatformIO* igGetPlatformIO_ContextPtr(ImGuiContext* ctx)
{ {
return &ImGui::GetPlatformIOEx(ctx); return &ImGui::GetPlatformIO(ctx);
} }
CIMGUI_API ImGuiWindow* igGetCurrentWindowRead() CIMGUI_API ImGuiWindow* igGetCurrentWindowRead()
{ {
@@ -4399,7 +4403,7 @@ CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width
{ {
return ImGui::ShrinkWidths(items,count,width_excess); return ImGui::ShrinkWidths(items,count,width_excess);
} }
CIMGUI_API const ImGuiDataVarInfo* igGetStyleVarInfo(ImGuiStyleVar idx) CIMGUI_API const ImGuiStyleVarInfo* igGetStyleVarInfo(ImGuiStyleVar idx)
{ {
return ImGui::GetStyleVarInfo(idx); return ImGui::GetStyleVarInfo(idx);
} }
@@ -4435,6 +4439,10 @@ CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_window_flags)
{ {
return ImGui::BeginPopupEx(id,extra_window_flags); return ImGui::BeginPopupEx(id,extra_window_flags);
} }
CIMGUI_API bool igBeginPopupMenuEx(ImGuiID id,const char* label,ImGuiWindowFlags extra_window_flags)
{
return ImGui::BeginPopupMenuEx(id,label,extra_window_flags);
}
CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags) CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags)
{ {
return ImGui::OpenPopupEx(id,popup_flags); return ImGui::OpenPopupEx(id,popup_flags);
@@ -5555,6 +5563,10 @@ CIMGUI_API void igSetNextItemRefVal(ImGuiDataType data_type,void* p_data)
{ {
return ImGui::SetNextItemRefVal(data_type,p_data); return ImGui::SetNextItemRefVal(data_type,p_data);
} }
CIMGUI_API bool igIsItemActiveAsInputText()
{
return ImGui::IsItemActiveAsInputText();
}
CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags) CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags)
{ {
return ImGui::ColorTooltip(text,col,flags); return ImGui::ColorTooltip(text,col,flags);
@@ -5767,17 +5779,17 @@ CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype()
{ {
return ImFontAtlasGetBuilderForStbTruetype(); return ImFontAtlasGetBuilderForStbTruetype();
} }
CIMGUI_API void igImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas) CIMGUI_API void igImFontAtlasUpdateSourcesPointers(ImFontAtlas* atlas)
{ {
return ImFontAtlasUpdateConfigDataPointers(atlas); return ImFontAtlasUpdateSourcesPointers(atlas);
} }
CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas) CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas)
{ {
return ImFontAtlasBuildInit(atlas); return ImFontAtlasBuildInit(atlas);
} }
CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent) CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* src,float ascent,float descent)
{ {
return ImFontAtlasBuildSetupFont(atlas,font,font_config,ascent,descent); return ImFontAtlasBuildSetupFont(atlas,font,src,ascent,descent);
} }
CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque) CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque)
{ {
@@ -5803,9 +5815,13 @@ CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[2
{ {
return ImFontAtlasBuildMultiplyRectAlpha8(table,pixels,x,y,w,h,stride); return ImFontAtlasBuildMultiplyRectAlpha8(table,pixels,x,y,w,h,stride);
} }
CIMGUI_API void igImFontAtlasBuildGetOversampleFactors(const ImFontConfig* cfg,int* out_oversample_h,int* out_oversample_v) CIMGUI_API void igImFontAtlasBuildGetOversampleFactors(const ImFontConfig* src,int* out_oversample_h,int* out_oversample_v)
{ {
return ImFontAtlasBuildGetOversampleFactors(cfg,out_oversample_h,out_oversample_v); return ImFontAtlasBuildGetOversampleFactors(src,out_oversample_h,out_oversample_v);
}
CIMGUI_API bool igImFontAtlasGetMouseCursorTexData(ImFontAtlas* atlas,ImGuiMouseCursor cursor_type,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2])
{
return ImFontAtlasGetMouseCursorTexData(atlas,cursor_type,out_offset,out_size,out_uv_border,out_uv_fill);
} }
#ifdef IMGUI_ENABLE_FREETYPE #ifdef IMGUI_ENABLE_FREETYPE
CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType() CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType()

190
cimgui.h
View File

@@ -1,5 +1,5 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.91.8" 19180 from Dear ImGui https://github.com/ocornut/imgui //based on imgui.h file version "1.91.9b" 19191 from Dear ImGui https://github.com/ocornut/imgui
//with imgui_internal.h api //with imgui_internal.h api
//with imgui_freetype.h api //with imgui_freetype.h api
//docking branch //docking branch
@@ -87,7 +87,6 @@ typedef struct ImDrawDataBuilder ImDrawDataBuilder;
typedef struct ImGuiBoxSelectState ImGuiBoxSelectState; typedef struct ImGuiBoxSelectState ImGuiBoxSelectState;
typedef struct ImGuiColorMod ImGuiColorMod; typedef struct ImGuiColorMod ImGuiColorMod;
typedef struct ImGuiContextHook ImGuiContextHook; typedef struct ImGuiContextHook ImGuiContextHook;
typedef struct ImGuiDataVarInfo ImGuiDataVarInfo;
typedef struct ImGuiDataTypeInfo ImGuiDataTypeInfo; typedef struct ImGuiDataTypeInfo ImGuiDataTypeInfo;
typedef struct ImGuiDeactivatedItemData ImGuiDeactivatedItemData; typedef struct ImGuiDeactivatedItemData ImGuiDeactivatedItemData;
typedef struct ImGuiDockContext ImGuiDockContext; typedef struct ImGuiDockContext ImGuiDockContext;
@@ -112,6 +111,7 @@ typedef struct ImGuiOldColumns ImGuiOldColumns;
typedef struct ImGuiPopupData ImGuiPopupData; typedef struct ImGuiPopupData ImGuiPopupData;
typedef struct ImGuiSettingsHandler ImGuiSettingsHandler; typedef struct ImGuiSettingsHandler ImGuiSettingsHandler;
typedef struct ImGuiStyleMod ImGuiStyleMod; typedef struct ImGuiStyleMod ImGuiStyleMod;
typedef struct ImGuiStyleVarInfo ImGuiStyleVarInfo;
typedef struct ImGuiTabBar ImGuiTabBar; typedef struct ImGuiTabBar ImGuiTabBar;
typedef struct ImGuiTabItem ImGuiTabItem; typedef struct ImGuiTabItem ImGuiTabItem;
typedef struct ImGuiTable ImGuiTable; typedef struct ImGuiTable ImGuiTable;
@@ -214,8 +214,6 @@ typedef int ImGuiTableRowFlags;
typedef int ImGuiTreeNodeFlags; typedef int ImGuiTreeNodeFlags;
typedef int ImGuiViewportFlags; typedef int ImGuiViewportFlags;
typedef int ImGuiWindowFlags; typedef int ImGuiWindowFlags;
typedef ImU64 ImTextureID;
typedef unsigned short ImDrawIdx;
typedef unsigned int ImWchar32; typedef unsigned int ImWchar32;
typedef unsigned short ImWchar16; typedef unsigned short ImWchar16;
@@ -245,6 +243,7 @@ struct ImVec4
{ {
float x, y, z, w; float x, y, z, w;
}; };
typedef ImU64 ImTextureID;
typedef enum { typedef enum {
ImGuiWindowFlags_None = 0, ImGuiWindowFlags_None = 0,
ImGuiWindowFlags_NoTitleBar = 1 << 0, ImGuiWindowFlags_NoTitleBar = 1 << 0,
@@ -614,42 +613,43 @@ ImGuiKey_KeypadEnter=627,
ImGuiKey_KeypadEqual=628, ImGuiKey_KeypadEqual=628,
ImGuiKey_AppBack=629, ImGuiKey_AppBack=629,
ImGuiKey_AppForward=630, ImGuiKey_AppForward=630,
ImGuiKey_GamepadStart=631, ImGuiKey_Oem102=631,
ImGuiKey_GamepadBack=632, ImGuiKey_GamepadStart=632,
ImGuiKey_GamepadFaceLeft=633, ImGuiKey_GamepadBack=633,
ImGuiKey_GamepadFaceRight=634, ImGuiKey_GamepadFaceLeft=634,
ImGuiKey_GamepadFaceUp=635, ImGuiKey_GamepadFaceRight=635,
ImGuiKey_GamepadFaceDown=636, ImGuiKey_GamepadFaceUp=636,
ImGuiKey_GamepadDpadLeft=637, ImGuiKey_GamepadFaceDown=637,
ImGuiKey_GamepadDpadRight=638, ImGuiKey_GamepadDpadLeft=638,
ImGuiKey_GamepadDpadUp=639, ImGuiKey_GamepadDpadRight=639,
ImGuiKey_GamepadDpadDown=640, ImGuiKey_GamepadDpadUp=640,
ImGuiKey_GamepadL1=641, ImGuiKey_GamepadDpadDown=641,
ImGuiKey_GamepadR1=642, ImGuiKey_GamepadL1=642,
ImGuiKey_GamepadL2=643, ImGuiKey_GamepadR1=643,
ImGuiKey_GamepadR2=644, ImGuiKey_GamepadL2=644,
ImGuiKey_GamepadL3=645, ImGuiKey_GamepadR2=645,
ImGuiKey_GamepadR3=646, ImGuiKey_GamepadL3=646,
ImGuiKey_GamepadLStickLeft=647, ImGuiKey_GamepadR3=647,
ImGuiKey_GamepadLStickRight=648, ImGuiKey_GamepadLStickLeft=648,
ImGuiKey_GamepadLStickUp=649, ImGuiKey_GamepadLStickRight=649,
ImGuiKey_GamepadLStickDown=650, ImGuiKey_GamepadLStickUp=650,
ImGuiKey_GamepadRStickLeft=651, ImGuiKey_GamepadLStickDown=651,
ImGuiKey_GamepadRStickRight=652, ImGuiKey_GamepadRStickLeft=652,
ImGuiKey_GamepadRStickUp=653, ImGuiKey_GamepadRStickRight=653,
ImGuiKey_GamepadRStickDown=654, ImGuiKey_GamepadRStickUp=654,
ImGuiKey_MouseLeft=655, ImGuiKey_GamepadRStickDown=655,
ImGuiKey_MouseRight=656, ImGuiKey_MouseLeft=656,
ImGuiKey_MouseMiddle=657, ImGuiKey_MouseRight=657,
ImGuiKey_MouseX1=658, ImGuiKey_MouseMiddle=658,
ImGuiKey_MouseX2=659, ImGuiKey_MouseX1=659,
ImGuiKey_MouseWheelX=660, ImGuiKey_MouseX2=660,
ImGuiKey_MouseWheelY=661, ImGuiKey_MouseWheelX=661,
ImGuiKey_ReservedForModCtrl=662, ImGuiKey_MouseWheelY=662,
ImGuiKey_ReservedForModShift=663, ImGuiKey_ReservedForModCtrl=663,
ImGuiKey_ReservedForModAlt=664, ImGuiKey_ReservedForModShift=664,
ImGuiKey_ReservedForModSuper=665, ImGuiKey_ReservedForModAlt=665,
ImGuiKey_NamedKey_END=666, ImGuiKey_ReservedForModSuper=666,
ImGuiKey_NamedKey_END=667,
ImGuiMod_None=0, ImGuiMod_None=0,
ImGuiMod_Ctrl=1 << 12, ImGuiMod_Ctrl=1 << 12,
ImGuiMod_Shift=1 << 13, ImGuiMod_Shift=1 << 13,
@@ -779,6 +779,7 @@ typedef enum {
ImGuiStyleVar_ScrollbarRounding, ImGuiStyleVar_ScrollbarRounding,
ImGuiStyleVar_GrabMinSize, ImGuiStyleVar_GrabMinSize,
ImGuiStyleVar_GrabRounding, ImGuiStyleVar_GrabRounding,
ImGuiStyleVar_ImageBorderSize,
ImGuiStyleVar_TabRounding, ImGuiStyleVar_TabRounding,
ImGuiStyleVar_TabBorderSize, ImGuiStyleVar_TabBorderSize,
ImGuiStyleVar_TabBarBorderSize, ImGuiStyleVar_TabBarBorderSize,
@@ -862,6 +863,8 @@ typedef enum {
ImGuiMouseCursor_ResizeNESW, ImGuiMouseCursor_ResizeNESW,
ImGuiMouseCursor_ResizeNWSE, ImGuiMouseCursor_ResizeNWSE,
ImGuiMouseCursor_Hand, ImGuiMouseCursor_Hand,
ImGuiMouseCursor_Wait,
ImGuiMouseCursor_Progress,
ImGuiMouseCursor_NotAllowed, ImGuiMouseCursor_NotAllowed,
ImGuiMouseCursor_COUNT ImGuiMouseCursor_COUNT
}ImGuiMouseCursor_; }ImGuiMouseCursor_;
@@ -977,6 +980,7 @@ struct ImGuiStyle
ImVec2 WindowPadding; ImVec2 WindowPadding;
float WindowRounding; float WindowRounding;
float WindowBorderSize; float WindowBorderSize;
float WindowBorderHoverPadding;
ImVec2 WindowMinSize; ImVec2 WindowMinSize;
ImVec2 WindowTitleAlign; ImVec2 WindowTitleAlign;
ImGuiDir WindowMenuButtonPosition; ImGuiDir WindowMenuButtonPosition;
@@ -998,9 +1002,11 @@ struct ImGuiStyle
float GrabMinSize; float GrabMinSize;
float GrabRounding; float GrabRounding;
float LogSliderDeadzone; float LogSliderDeadzone;
float ImageBorderSize;
float TabRounding; float TabRounding;
float TabBorderSize; float TabBorderSize;
float TabMinWidthForCloseButton; float TabCloseButtonMinWidthSelected;
float TabCloseButtonMinWidthUnselected;
float TabBarBorderSize; float TabBarBorderSize;
float TabBarOverlineSize; float TabBarOverlineSize;
float TableAngledHeadersAngle; float TableAngledHeadersAngle;
@@ -1088,6 +1094,7 @@ struct ImGuiIO
bool ConfigErrorRecoveryEnableTooltip; bool ConfigErrorRecoveryEnableTooltip;
bool ConfigDebugIsDebuggerPresent; bool ConfigDebugIsDebuggerPresent;
bool ConfigDebugHighlightIdConflicts; bool ConfigDebugHighlightIdConflicts;
bool ConfigDebugHighlightIdConflictsShowItemPicker;
bool ConfigDebugBeginReturnValueOnce; bool ConfigDebugBeginReturnValueOnce;
bool ConfigDebugBeginReturnValueLoop; bool ConfigDebugBeginReturnValueLoop;
bool ConfigDebugIgnoreFocusLoss; bool ConfigDebugIgnoreFocusLoss;
@@ -1302,6 +1309,7 @@ struct ImGuiSelectionExternalStorage
void* UserData; void* UserData;
void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected); void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected);
}; };
typedef unsigned short ImDrawIdx;
typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd); typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* cmd);
struct ImDrawCmd struct ImDrawCmd
{ {
@@ -1422,11 +1430,11 @@ struct ImFontConfig
int OversampleH; int OversampleH;
int OversampleV; int OversampleV;
float SizePixels; float SizePixels;
ImVec2 GlyphExtraSpacing;
ImVec2 GlyphOffset; ImVec2 GlyphOffset;
const ImWchar* GlyphRanges; const ImWchar* GlyphRanges;
float GlyphMinAdvanceX; float GlyphMinAdvanceX;
float GlyphMaxAdvanceX; float GlyphMaxAdvanceX;
float GlyphExtraAdvanceX;
unsigned int FontBuilderFlags; unsigned int FontBuilderFlags;
float RasterizerMultiply; float RasterizerMultiply;
float RasterizerDensity; float RasterizerDensity;
@@ -1490,7 +1498,7 @@ struct ImFontAtlas
ImVec2 TexUvWhitePixel; ImVec2 TexUvWhitePixel;
ImVector_ImFontPtr Fonts; ImVector_ImFontPtr Fonts;
ImVector_ImFontAtlasCustomRect CustomRects; ImVector_ImFontAtlasCustomRect CustomRects;
ImVector_ImFontConfig ConfigData; ImVector_ImFontConfig Sources;
ImVec4 TexUvLines[(32) + 1]; ImVec4 TexUvLines[(32) + 1];
const ImFontBuilderIO* FontBuilderIO; const ImFontBuilderIO* FontBuilderIO;
unsigned int FontBuilderFlags; unsigned int FontBuilderFlags;
@@ -1510,10 +1518,10 @@ struct ImFont
float FontSize; float FontSize;
ImVector_ImU16 IndexLookup; ImVector_ImU16 IndexLookup;
ImVector_ImFontGlyph Glyphs; ImVector_ImFontGlyph Glyphs;
const ImFontGlyph* FallbackGlyph; ImFontGlyph* FallbackGlyph;
ImFontAtlas* ContainerAtlas; ImFontAtlas* ContainerAtlas;
const ImFontConfig* ConfigData; ImFontConfig* Sources;
short ConfigDataCount; short SourcesCount;
short EllipsisCharCount; short EllipsisCharCount;
ImWchar EllipsisChar; ImWchar EllipsisChar;
ImWchar FallbackChar; ImWchar FallbackChar;
@@ -1626,7 +1634,6 @@ struct ImGuiBoxSelectState;
struct ImGuiColorMod; struct ImGuiColorMod;
struct ImGuiContext; struct ImGuiContext;
struct ImGuiContextHook; struct ImGuiContextHook;
struct ImGuiDataVarInfo;
struct ImGuiDataTypeInfo; struct ImGuiDataTypeInfo;
struct ImGuiDeactivatedItemData; struct ImGuiDeactivatedItemData;
struct ImGuiDockContext; struct ImGuiDockContext;
@@ -1651,6 +1658,7 @@ struct ImGuiOldColumns;
struct ImGuiPopupData; struct ImGuiPopupData;
struct ImGuiSettingsHandler; struct ImGuiSettingsHandler;
struct ImGuiStyleMod; struct ImGuiStyleMod;
struct ImGuiStyleVarInfo;
struct ImGuiTabBar; struct ImGuiTabBar;
struct ImGuiTabItem; struct ImGuiTabItem;
struct ImGuiTable; struct ImGuiTable;
@@ -1724,8 +1732,9 @@ struct ImDrawListSharedData
float FontScale; float FontScale;
float CurveTessellationTol; float CurveTessellationTol;
float CircleSegmentMaxError; float CircleSegmentMaxError;
ImVec4 ClipRectFullscreen; float InitialFringeScale;
ImDrawListFlags InitialFlags; ImDrawListFlags InitialFlags;
ImVec4 ClipRectFullscreen;
ImVector_ImVec2 TempBuffer; ImVector_ImVec2 TempBuffer;
ImVec2 ArcFastVtx[48]; ImVec2 ArcFastVtx[48];
float ArcFastRadiusCutoff; float ArcFastRadiusCutoff;
@@ -1736,11 +1745,21 @@ struct ImDrawDataBuilder
ImVector_ImDrawListPtr* Layers[2]; ImVector_ImDrawListPtr* Layers[2];
ImVector_ImDrawListPtr LayerData1; ImVector_ImDrawListPtr LayerData1;
}; };
struct ImGuiDataVarInfo struct ImGuiStyleVarInfo
{ {
ImGuiDataType Type; ImU32 Count : 8;
ImU32 Count; ImGuiDataType DataType : 8;
ImU32 Offset; ImU32 Offset : 16;
};
struct ImGuiColorMod
{
ImGuiCol Col;
ImVec4 BackupValue;
};
struct ImGuiStyleMod
{
ImGuiStyleVar VarIdx;
union { int BackupInt[2]; float BackupFloat[2]; };
}; };
typedef struct ImGuiDataTypeStorage ImGuiDataTypeStorage; typedef struct ImGuiDataTypeStorage ImGuiDataTypeStorage;
struct ImGuiDataTypeStorage struct ImGuiDataTypeStorage
@@ -1755,7 +1774,7 @@ struct ImGuiDataTypeInfo
const char* ScanFmt; const char* ScanFmt;
}; };
typedef enum { typedef enum {
ImGuiDataType_Pointer = ImGuiDataType_COUNT + 1, ImGuiDataType_Pointer = ImGuiDataType_COUNT,
ImGuiDataType_ID, ImGuiDataType_ID,
}ImGuiDataTypePrivate_; }ImGuiDataTypePrivate_;
typedef enum { typedef enum {
@@ -1876,16 +1895,6 @@ typedef enum {
ImGuiPlotType_Lines, ImGuiPlotType_Lines,
ImGuiPlotType_Histogram, ImGuiPlotType_Histogram,
}ImGuiPlotType; }ImGuiPlotType;
struct ImGuiColorMod
{
ImGuiCol Col;
ImVec4 BackupValue;
};
struct ImGuiStyleMod
{
ImGuiStyleVar VarIdx;
union { int BackupInt[2]; float BackupFloat[2]; };
};
typedef struct ImGuiComboPreviewData ImGuiComboPreviewData; typedef struct ImGuiComboPreviewData ImGuiComboPreviewData;
struct ImGuiComboPreviewData struct ImGuiComboPreviewData
{ {
@@ -1967,15 +1976,16 @@ typedef enum {
ImGuiNextWindowDataFlags_HasFocus = 1 << 5, ImGuiNextWindowDataFlags_HasFocus = 1 << 5,
ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6, ImGuiNextWindowDataFlags_HasBgAlpha = 1 << 6,
ImGuiNextWindowDataFlags_HasScroll = 1 << 7, ImGuiNextWindowDataFlags_HasScroll = 1 << 7,
ImGuiNextWindowDataFlags_HasChildFlags = 1 << 8, ImGuiNextWindowDataFlags_HasWindowFlags = 1 << 8,
ImGuiNextWindowDataFlags_HasRefreshPolicy = 1 << 9, ImGuiNextWindowDataFlags_HasChildFlags = 1 << 9,
ImGuiNextWindowDataFlags_HasViewport = 1 << 10, ImGuiNextWindowDataFlags_HasRefreshPolicy = 1 << 10,
ImGuiNextWindowDataFlags_HasDock = 1 << 11, ImGuiNextWindowDataFlags_HasViewport = 1 << 11,
ImGuiNextWindowDataFlags_HasWindowClass = 1 << 12, ImGuiNextWindowDataFlags_HasDock = 1 << 12,
ImGuiNextWindowDataFlags_HasWindowClass = 1 << 13,
}ImGuiNextWindowDataFlags_; }ImGuiNextWindowDataFlags_;
struct ImGuiNextWindowData struct ImGuiNextWindowData
{ {
ImGuiNextWindowDataFlags Flags; ImGuiNextWindowDataFlags HasFlags;
ImGuiCond PosCond; ImGuiCond PosCond;
ImGuiCond SizeCond; ImGuiCond SizeCond;
ImGuiCond CollapsedCond; ImGuiCond CollapsedCond;
@@ -1985,6 +1995,7 @@ struct ImGuiNextWindowData
ImVec2 SizeVal; ImVec2 SizeVal;
ImVec2 ContentSizeVal; ImVec2 ContentSizeVal;
ImVec2 ScrollVal; ImVec2 ScrollVal;
ImGuiWindowFlags WindowFlags;
ImGuiChildFlags ChildFlags; ImGuiChildFlags ChildFlags;
bool PosUndock; bool PosUndock;
bool CollapsedVal; bool CollapsedVal;
@@ -2059,6 +2070,7 @@ struct ImGuiWindowStackData
ImGuiLastItemData ParentLastItemDataBackup; ImGuiLastItemData ParentLastItemDataBackup;
ImGuiErrorRecoveryState StackSizesInBegin; ImGuiErrorRecoveryState StackSizesInBegin;
bool DisabledOverrideReenable; bool DisabledOverrideReenable;
float DisabledOverrideReenableAlphaBackup;
}; };
typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem; typedef struct ImGuiShrinkWidthItem ImGuiShrinkWidthItem;
struct ImGuiShrinkWidthItem struct ImGuiShrinkWidthItem
@@ -2635,7 +2647,6 @@ struct ImGuiMetricsConfig
bool ShowDrawCmdMesh; bool ShowDrawCmdMesh;
bool ShowDrawCmdBoundingBoxes; bool ShowDrawCmdBoundingBoxes;
bool ShowTextEncodingViewer; bool ShowTextEncodingViewer;
bool ShowAtlasTintedWithTextColor;
bool ShowDockingNodes; bool ShowDockingNodes;
int ShowWindowsRectsType; int ShowWindowsRectsType;
int ShowTablesRectsType; int ShowTablesRectsType;
@@ -2662,6 +2673,7 @@ struct ImGuiIDStackTool
ImVector_ImGuiStackLevelInfo Results; ImVector_ImGuiStackLevelInfo Results;
bool CopyToClipboardOnCtrlC; bool CopyToClipboardOnCtrlC;
float CopyToClipboardLastTime; float CopyToClipboardLastTime;
ImGuiTextBuffer ResultPathBuf;
}; };
typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook); typedef void (*ImGuiContextHookCallback)(ImGuiContext* ctx, ImGuiContextHook* hook);
typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType; typedef enum { ImGuiContextHookType_NewFramePre, ImGuiContextHookType_NewFramePost, ImGuiContextHookType_EndFramePre, ImGuiContextHookType_EndFramePost, ImGuiContextHookType_RenderPre, ImGuiContextHookType_RenderPost, ImGuiContextHookType_Shutdown, ImGuiContextHookType_PendingRemoval_ }ImGuiContextHookType;
@@ -2764,7 +2776,7 @@ struct ImGuiContext
ImVector_ImGuiWindowStackData CurrentWindowStack; ImVector_ImGuiWindowStackData CurrentWindowStack;
ImGuiStorage WindowsById; ImGuiStorage WindowsById;
int WindowsActiveCount; int WindowsActiveCount;
ImVec2 WindowsHoverPadding; float WindowsBorderHoverPadding;
ImGuiID DebugBreakInWindow; ImGuiID DebugBreakInWindow;
ImGuiWindow* CurrentWindow; ImGuiWindow* CurrentWindow;
ImGuiWindow* HoveredWindow; ImGuiWindow* HoveredWindow;
@@ -3126,6 +3138,8 @@ struct ImGuiWindow
ImVec2 ScrollTargetEdgeSnapDist; ImVec2 ScrollTargetEdgeSnapDist;
ImVec2 ScrollbarSizes; ImVec2 ScrollbarSizes;
bool ScrollbarX, ScrollbarY; bool ScrollbarX, ScrollbarY;
bool ScrollbarXStabilizeEnabled;
ImU8 ScrollbarXStabilizeToggledHistory;
bool ViewportOwned; bool ViewportOwned;
bool Active; bool Active;
bool WasActive; bool WasActive;
@@ -3499,7 +3513,7 @@ struct ImGuiTableColumnSettings
ImGuiTableColumnIdx DisplayOrder; ImGuiTableColumnIdx DisplayOrder;
ImGuiTableColumnIdx SortOrder; ImGuiTableColumnIdx SortOrder;
ImU8 SortDirection : 2; ImU8 SortDirection : 2;
ImU8 IsEnabled : 1; ImS8 IsEnabled : 2;
ImU8 IsStretch : 1; ImU8 IsStretch : 1;
}; };
struct ImGuiTableSettings struct ImGuiTableSettings
@@ -3619,8 +3633,8 @@ CIMGUI_API ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas);
CIMGUI_API void igDestroyContext(ImGuiContext* ctx); CIMGUI_API void igDestroyContext(ImGuiContext* ctx);
CIMGUI_API ImGuiContext* igGetCurrentContext(void); CIMGUI_API ImGuiContext* igGetCurrentContext(void);
CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx); CIMGUI_API void igSetCurrentContext(ImGuiContext* ctx);
CIMGUI_API ImGuiIO* igGetIO(void); CIMGUI_API ImGuiIO* igGetIO_Nil(void);
CIMGUI_API ImGuiPlatformIO* igGetPlatformIO(void); CIMGUI_API ImGuiPlatformIO* igGetPlatformIO_Nil(void);
CIMGUI_API ImGuiStyle* igGetStyle(void); CIMGUI_API ImGuiStyle* igGetStyle(void);
CIMGUI_API void igNewFrame(void); CIMGUI_API void igNewFrame(void);
CIMGUI_API void igEndFrame(void); CIMGUI_API void igEndFrame(void);
@@ -3768,7 +3782,8 @@ CIMGUI_API void igProgressBar(float fraction,const ImVec2 size_arg,const char* o
CIMGUI_API void igBullet(void); CIMGUI_API void igBullet(void);
CIMGUI_API bool igTextLink(const char* label); CIMGUI_API bool igTextLink(const char* label);
CIMGUI_API void igTextLinkOpenURL(const char* label,const char* url); CIMGUI_API void igTextLinkOpenURL(const char* label,const char* url);
CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 tint_col,const ImVec4 border_col); CIMGUI_API void igImage(ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1);
CIMGUI_API void igImageWithBg(ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col);
CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col); CIMGUI_API bool igImageButton(const char* str_id,ImTextureID user_texture_id,const ImVec2 image_size,const ImVec2 uv0,const ImVec2 uv1,const ImVec4 bg_col,const ImVec4 tint_col);
CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); CIMGUI_API bool igBeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags);
CIMGUI_API void igEndCombo(void); CIMGUI_API void igEndCombo(void);
@@ -4085,6 +4100,7 @@ CIMGUI_API const char* ImGuiTextBuffer_end(ImGuiTextBuffer* self);
CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self); CIMGUI_API int ImGuiTextBuffer_size(ImGuiTextBuffer* self);
CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self); CIMGUI_API bool ImGuiTextBuffer_empty(ImGuiTextBuffer* self);
CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self);
CIMGUI_API void ImGuiTextBuffer_resize(ImGuiTextBuffer* self,int size);
CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity); CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self,int capacity);
CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); CIMGUI_API const char* ImGuiTextBuffer_c_str(ImGuiTextBuffer* self);
CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end); CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self,const char* str,const char* str_end);
@@ -4266,11 +4282,10 @@ CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self,int width,int
CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset); CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self,ImFont* font,ImWchar id,int width,int height,float advance_x,const ImVec2 offset);
CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index); CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self,int index);
CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max); CIMGUI_API void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self,const ImFontAtlasCustomRect* rect,ImVec2* out_uv_min,ImVec2* out_uv_max);
CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self,ImGuiMouseCursor cursor,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]);
CIMGUI_API ImFont* ImFont_ImFont(void); CIMGUI_API ImFont* ImFont_ImFont(void);
CIMGUI_API void ImFont_destroy(ImFont* self); CIMGUI_API void ImFont_destroy(ImFont* self);
CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c); CIMGUI_API ImFontGlyph* ImFont_FindGlyph(ImFont* self,ImWchar c);
CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c); CIMGUI_API ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self,ImWchar c);
CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c); CIMGUI_API float ImFont_GetCharAdvance(ImFont* self,ImWchar c);
CIMGUI_API bool ImFont_IsLoaded(ImFont* self); CIMGUI_API bool ImFont_IsLoaded(ImFont* self);
CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); CIMGUI_API const char* ImFont_GetDebugName(ImFont* self);
@@ -4283,7 +4298,6 @@ CIMGUI_API void ImFont_ClearOutputData(ImFont* self);
CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size); CIMGUI_API void ImFont_GrowIndex(ImFont* self,int new_size);
CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x); CIMGUI_API void ImFont_AddGlyph(ImFont* self,const ImFontConfig* src_cfg,ImWchar c,float x0,float y0,float x1,float y1,float u0,float v0,float u1,float v1,float advance_x);
CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst); CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar dst,ImWchar src,bool overwrite_dst);
CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self,ImWchar c,bool visible);
CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last); CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last);
CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void); CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void);
CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self); CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self);
@@ -4302,6 +4316,7 @@ CIMGUI_API ImU32 igImAlphaBlendColors(ImU32 col_a,ImU32 col_b);
CIMGUI_API bool igImIsPowerOfTwo_Int(int v); CIMGUI_API bool igImIsPowerOfTwo_Int(int v);
CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v); CIMGUI_API bool igImIsPowerOfTwo_U64(ImU64 v);
CIMGUI_API int igImUpperPowerOfTwo(int v); CIMGUI_API int igImUpperPowerOfTwo(int v);
CIMGUI_API unsigned int igImCountSetBits(unsigned int v);
CIMGUI_API int igImStricmp(const char* str1,const char* str2); CIMGUI_API int igImStricmp(const char* str1,const char* str2);
CIMGUI_API int igImStrnicmp(const char* str1,const char* str2,size_t count); CIMGUI_API int igImStrnicmp(const char* str1,const char* str2,size_t count);
CIMGUI_API void igImStrncpy(char* dst,const char* src,size_t count); CIMGUI_API void igImStrncpy(char* dst,const char* src,size_t count);
@@ -4445,7 +4460,7 @@ CIMGUI_API void ImDrawListSharedData_destroy(ImDrawListSharedData* self);
CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error); CIMGUI_API void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self,float max_error);
CIMGUI_API ImDrawDataBuilder* ImDrawDataBuilder_ImDrawDataBuilder(void); CIMGUI_API ImDrawDataBuilder* ImDrawDataBuilder_ImDrawDataBuilder(void);
CIMGUI_API void ImDrawDataBuilder_destroy(ImDrawDataBuilder* self); CIMGUI_API void ImDrawDataBuilder_destroy(ImDrawDataBuilder* self);
CIMGUI_API void* ImGuiDataVarInfo_GetVarPtr(ImGuiDataVarInfo* self,void* parent); CIMGUI_API void* ImGuiStyleVarInfo_GetVarPtr(ImGuiStyleVarInfo* self,void* parent);
CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v); CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx,int v);
CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self); CIMGUI_API void ImGuiStyleMod_destroy(ImGuiStyleMod* self);
CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v); CIMGUI_API ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx,float v);
@@ -4592,8 +4607,8 @@ CIMGUI_API void ImGuiTableColumnSettings_destroy(ImGuiTableColumnSettings* self)
CIMGUI_API ImGuiTableSettings* ImGuiTableSettings_ImGuiTableSettings(void); CIMGUI_API ImGuiTableSettings* ImGuiTableSettings_ImGuiTableSettings(void);
CIMGUI_API void ImGuiTableSettings_destroy(ImGuiTableSettings* self); CIMGUI_API void ImGuiTableSettings_destroy(ImGuiTableSettings* self);
CIMGUI_API ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiTableSettings* self); CIMGUI_API ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiTableSettings* self);
CIMGUI_API ImGuiIO* igGetIOEx(ImGuiContext* ctx); CIMGUI_API ImGuiIO* igGetIO_ContextPtr(ImGuiContext* ctx);
CIMGUI_API ImGuiPlatformIO* igGetPlatformIOEx(ImGuiContext* ctx); CIMGUI_API ImGuiPlatformIO* igGetPlatformIO_ContextPtr(ImGuiContext* ctx);
CIMGUI_API ImGuiWindow* igGetCurrentWindowRead(void); CIMGUI_API ImGuiWindow* igGetCurrentWindowRead(void);
CIMGUI_API ImGuiWindow* igGetCurrentWindow(void); CIMGUI_API ImGuiWindow* igGetCurrentWindow(void);
CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id); CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id);
@@ -4693,7 +4708,7 @@ CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float de
CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x); CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x);
CIMGUI_API void igPushMultiItemsWidths(int components,float width_full); CIMGUI_API void igPushMultiItemsWidths(int components,float width_full);
CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess); CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess);
CIMGUI_API const ImGuiDataVarInfo* igGetStyleVarInfo(ImGuiStyleVar idx); CIMGUI_API const ImGuiStyleVarInfo* igGetStyleVarInfo(ImGuiStyleVar idx);
CIMGUI_API void igBeginDisabledOverrideReenable(void); CIMGUI_API void igBeginDisabledOverrideReenable(void);
CIMGUI_API void igEndDisabledOverrideReenable(void); CIMGUI_API void igEndDisabledOverrideReenable(void);
CIMGUI_API void igLogBegin(ImGuiLogFlags flags,int auto_open_depth); CIMGUI_API void igLogBegin(ImGuiLogFlags flags,int auto_open_depth);
@@ -4702,6 +4717,7 @@ CIMGUI_API void igLogRenderedText(const ImVec2* ref_pos,const char* text,const c
CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix); CIMGUI_API void igLogSetNextTextDecoration(const char* prefix,const char* suffix);
CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,ImGuiChildFlags child_flags,ImGuiWindowFlags window_flags); CIMGUI_API bool igBeginChildEx(const char* name,ImGuiID id,const ImVec2 size_arg,ImGuiChildFlags child_flags,ImGuiWindowFlags window_flags);
CIMGUI_API bool igBeginPopupEx(ImGuiID id,ImGuiWindowFlags extra_window_flags); 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); CIMGUI_API void igOpenPopupEx(ImGuiID id,ImGuiPopupFlags popup_flags);
CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup); CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_under_popup);
CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup); CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup);
@@ -4982,6 +4998,7 @@ CIMGUI_API bool igTempInputScalar(const ImRect bb,ImGuiID id,const char* label,I
CIMGUI_API bool igTempInputIsActive(ImGuiID id); CIMGUI_API bool igTempInputIsActive(ImGuiID id);
CIMGUI_API ImGuiInputTextState* igGetInputTextState(ImGuiID id); CIMGUI_API ImGuiInputTextState* igGetInputTextState(ImGuiID id);
CIMGUI_API void igSetNextItemRefVal(ImGuiDataType data_type,void* p_data); CIMGUI_API void igSetNextItemRefVal(ImGuiDataType data_type,void* p_data);
CIMGUI_API bool igIsItemActiveAsInputText(void);
CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags); CIMGUI_API void igColorTooltip(const char* text,const float* col,ImGuiColorEditFlags flags);
CIMGUI_API void igColorEditOptionsPopup(const float* col,ImGuiColorEditFlags flags); CIMGUI_API void igColorEditOptionsPopup(const float* col,ImGuiColorEditFlags flags);
CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col,ImGuiColorEditFlags flags); CIMGUI_API void igColorPickerOptionsPopup(const float* ref_col,ImGuiColorEditFlags flags);
@@ -5035,16 +5052,17 @@ CIMGUI_API void igDebugNodePlatformMonitor(ImGuiPlatformMonitor* monitor,const c
CIMGUI_API void igDebugRenderKeyboardPreview(ImDrawList* draw_list); CIMGUI_API void igDebugRenderKeyboardPreview(ImDrawList* draw_list);
CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb); CIMGUI_API void igDebugRenderViewportThumbnail(ImDrawList* draw_list,ImGuiViewportP* viewport,const ImRect bb);
CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype(void); CIMGUI_API const ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype(void);
CIMGUI_API void igImFontAtlasUpdateConfigDataPointers(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasUpdateSourcesPointers(ImFontAtlas* atlas);
CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasBuildInit(ImFontAtlas* atlas);
CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* font_config,float ascent,float descent); CIMGUI_API void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas,ImFont* font,ImFontConfig* src,float ascent,float descent);
CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque); CIMGUI_API void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas,void* stbrp_context_opaque);
CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasBuildFinish(ImFontAtlas* atlas);
CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value); CIMGUI_API void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned char in_marker_pixel_value);
CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value); CIMGUI_API void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas,int x,int y,int w,int h,const char* in_str,char in_marker_char,unsigned int in_marker_pixel_value);
CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor); CIMGUI_API void igImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256],float in_multiply_factor);
CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride); CIMGUI_API void igImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256],unsigned char* pixels,int x,int y,int w,int h,int stride);
CIMGUI_API void igImFontAtlasBuildGetOversampleFactors(const ImFontConfig* cfg,int* out_oversample_h,int* out_oversample_v); CIMGUI_API void igImFontAtlasBuildGetOversampleFactors(const ImFontConfig* src,int* out_oversample_h,int* out_oversample_v);
CIMGUI_API bool igImFontAtlasGetMouseCursorTexData(ImFontAtlas* atlas,ImGuiMouseCursor cursor_type,ImVec2* out_offset,ImVec2* out_size,ImVec2 out_uv_border[2],ImVec2 out_uv_fill[2]);
#ifdef IMGUI_ENABLE_FREETYPE #ifdef IMGUI_ENABLE_FREETYPE
CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void); CIMGUI_API const ImFontBuilderIO* ImGuiFreeType_GetBuilderForFreeType(void);
CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data); CIMGUI_API void ImGuiFreeType_SetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data);

46
cimgui_impl.cpp Normal file
View File

@@ -0,0 +1,46 @@
#include "./imgui/imgui.h"
#ifdef IMGUI_ENABLE_FREETYPE
#include "./imgui/misc/freetype/imgui_freetype.h"
#endif
#include "./imgui/imgui_internal.h"
#include "cimgui.h"
#ifdef CIMGUI_USE_GLFW
#include "imgui_impl_glfw.h"
#endif
#ifdef CIMGUI_USE_OPENGL3
#include "imgui_impl_opengl3.h"
#endif
#ifdef CIMGUI_USE_OPENGL2
#include "imgui_impl_opengl2.h"
#endif
#ifdef CIMGUI_USE_SDL2
#include "imgui_impl_sdl2.h"
#endif
#ifdef CIMGUI_USE_SDL3
#include "imgui_impl_sdl3.h"
#endif
#ifdef CIMGUI_USE_VULKAN
#include "imgui_impl_vulkan.h"
#endif
#include "cimgui_impl.h"
#ifdef CIMGUI_USE_VULKAN
CIMGUI_API ImGui_ImplVulkanH_Window* ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window()
{
return IM_NEW(ImGui_ImplVulkanH_Window)();
}
CIMGUI_API void ImGui_ImplVulkanH_Window_Construct(ImGui_ImplVulkanH_Window* self)
{
IM_PLACEMENT_NEW(self) ImGui_ImplVulkanH_Window();
}
#endif

198
cimgui_impl.h Normal file
View File

@@ -0,0 +1,198 @@
#ifdef CIMGUI_USE_GLFW
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct GLFWwindow GLFWwindow;
typedef struct GLFWmonitor GLFWmonitor;
struct GLFWwindow;
struct GLFWmonitor;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks);
CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks);
CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks);
CIMGUI_API void ImGui_ImplGlfw_Shutdown(void);
CIMGUI_API void ImGui_ImplGlfw_NewFrame(void);
CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window);
CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window);
CIMGUI_API void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows);
CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused);
CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered);
CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y);
CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods);
CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset);
CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods);
CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c);
CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event);
CIMGUI_API void ImGui_ImplGlfw_Sleep(int milliseconds);
#endif
#ifdef CIMGUI_USE_OPENGL3
CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version);
CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void);
CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void);
CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data);
CIMGUI_API bool ImGui_ImplOpenGL3_CreateFontsTexture(void);
CIMGUI_API void ImGui_ImplOpenGL3_DestroyFontsTexture(void);
CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void);
CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void);
#endif
#ifdef CIMGUI_USE_OPENGL2
CIMGUI_API bool ImGui_ImplOpenGL2_Init(void);
CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void);
CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void);
CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data);
CIMGUI_API bool ImGui_ImplOpenGL2_CreateFontsTexture(void);
CIMGUI_API void ImGui_ImplOpenGL2_DestroyFontsTexture(void);
CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void);
CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void);
#endif
#ifdef CIMGUI_USE_SDL2
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct SDL_Window SDL_Window;
typedef struct SDL_Renderer SDL_Renderer;
typedef struct _SDL_GameController _SDL_GameController;
struct SDL_Window;
struct SDL_Renderer;
struct _SDL_GameController;
typedef union SDL_Event SDL_Event;
typedef enum { ImGui_ImplSDL2_GamepadMode_AutoFirst, ImGui_ImplSDL2_GamepadMode_AutoAll, ImGui_ImplSDL2_GamepadMode_Manual }ImGui_ImplSDL2_GamepadMode;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context);
CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer);
CIMGUI_API bool ImGui_ImplSDL2_InitForOther(SDL_Window* window);
CIMGUI_API void ImGui_ImplSDL2_Shutdown(void);
CIMGUI_API void ImGui_ImplSDL2_NewFrame(void);
CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event);
CIMGUI_API void ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode mode,struct _SDL_GameController** manual_gamepads_array,int manual_gamepads_count);
#endif
#ifdef CIMGUI_USE_SDL3
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct SDL_Window SDL_Window;
typedef struct SDL_Renderer SDL_Renderer;
typedef struct SDL_Gamepad SDL_Gamepad;
struct SDL_Window;
struct SDL_Renderer;
struct SDL_Gamepad;
typedef union SDL_Event SDL_Event;
typedef enum { ImGui_ImplSDL3_GamepadMode_AutoFirst, ImGui_ImplSDL3_GamepadMode_AutoAll, ImGui_ImplSDL3_GamepadMode_Manual }ImGui_ImplSDL3_GamepadMode;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window,void* sdl_gl_context);
CIMGUI_API bool ImGui_ImplSDL3_InitForVulkan(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForD3D(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForMetal(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer);
CIMGUI_API bool ImGui_ImplSDL3_InitForSDLGPU(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForOther(SDL_Window* window);
CIMGUI_API void ImGui_ImplSDL3_Shutdown(void);
CIMGUI_API void ImGui_ImplSDL3_NewFrame(void);
CIMGUI_API bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event);
CIMGUI_API void ImGui_ImplSDL3_SetGamepadMode(ImGui_ImplSDL3_GamepadMode mode,SDL_Gamepad** manual_gamepads_array,int manual_gamepads_count);
#endif
#ifdef CIMGUI_USE_VULKAN
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef struct ImGui_ImplVulkanH_Frame ImGui_ImplVulkanH_Frame;
typedef struct ImGui_ImplVulkanH_Window ImGui_ImplVulkanH_Window;
typedef struct ImGui_ImplVulkan_InitInfo ImGui_ImplVulkan_InitInfo;
struct ImGui_ImplVulkan_InitInfo
{
uint32_t ApiVersion;
VkInstance Instance;
VkPhysicalDevice PhysicalDevice;
VkDevice Device;
uint32_t QueueFamily;
VkQueue Queue;
VkDescriptorPool DescriptorPool;
VkRenderPass RenderPass;
uint32_t MinImageCount;
uint32_t ImageCount;
VkSampleCountFlagBits MSAASamples;
VkPipelineCache PipelineCache;
uint32_t Subpass;
uint32_t DescriptorPoolSize;
bool UseDynamicRendering;
VkPipelineRenderingCreateInfoKHR PipelineRenderingCreateInfo;
const VkAllocationCallbacks* Allocator;
void (*CheckVkResultFn)(VkResult err);
VkDeviceSize MinAllocationSize;
};
typedef struct ImGui_ImplVulkan_RenderState ImGui_ImplVulkan_RenderState;
struct ImGui_ImplVulkan_RenderState
{
VkCommandBuffer CommandBuffer;
VkPipeline Pipeline;
VkPipelineLayout PipelineLayout;
};
struct ImGui_ImplVulkanH_Frame;
struct ImGui_ImplVulkanH_Window;
struct ImGui_ImplVulkanH_Frame
{
VkCommandPool CommandPool;
VkCommandBuffer CommandBuffer;
VkFence Fence;
VkImage Backbuffer;
VkImageView BackbufferView;
VkFramebuffer Framebuffer;
};
typedef struct ImGui_ImplVulkanH_FrameSemaphores ImGui_ImplVulkanH_FrameSemaphores;
struct ImGui_ImplVulkanH_FrameSemaphores
{
VkSemaphore ImageAcquiredSemaphore;
VkSemaphore RenderCompleteSemaphore;
};
typedef struct ImVector_ImGui_ImplVulkanH_Frame {int Size;int Capacity;ImGui_ImplVulkanH_Frame* Data;} ImVector_ImGui_ImplVulkanH_Frame;
typedef struct ImVector_ImGui_ImplVulkanH_FrameSemaphores {int Size;int Capacity;ImGui_ImplVulkanH_FrameSemaphores* Data;} ImVector_ImGui_ImplVulkanH_FrameSemaphores;
struct ImGui_ImplVulkanH_Window
{
int Width;
int Height;
VkSwapchainKHR Swapchain;
VkSurfaceKHR Surface;
VkSurfaceFormatKHR SurfaceFormat;
VkPresentModeKHR PresentMode;
VkRenderPass RenderPass;
bool UseDynamicRendering;
bool ClearEnable;
VkClearValue ClearValue;
uint32_t FrameIndex;
uint32_t ImageCount;
uint32_t SemaphoreCount;
uint32_t SemaphoreIndex;
ImVector_ImGui_ImplVulkanH_Frame Frames;
ImVector_ImGui_ImplVulkanH_FrameSemaphores FrameSemaphores;
};
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
typedef ImVector<ImGui_ImplVulkanH_Frame> ImVector_ImGui_ImplVulkanH_Frame;
typedef ImVector<ImGui_ImplVulkanH_FrameSemaphores> ImVector_ImGui_ImplVulkanH_FrameSemaphores;
#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS
CIMGUI_API bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info);
CIMGUI_API void ImGui_ImplVulkan_Shutdown(void);
CIMGUI_API void ImGui_ImplVulkan_NewFrame(void);
CIMGUI_API void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline);
CIMGUI_API bool ImGui_ImplVulkan_CreateFontsTexture(void);
CIMGUI_API void ImGui_ImplVulkan_DestroyFontsTexture(void);
CIMGUI_API void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count);
CIMGUI_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout);
CIMGUI_API void ImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descriptor_set);
CIMGUI_API bool ImGui_ImplVulkan_LoadFunctions(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data);
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);
CIMGUI_API void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator);
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 VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count);
CIMGUI_API VkPhysicalDevice ImGui_ImplVulkanH_SelectPhysicalDevice(VkInstance instance);
CIMGUI_API uint32_t ImGui_ImplVulkanH_SelectQueueFamilyIndex(VkPhysicalDevice physical_device);
CIMGUI_API int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode);
CIMGUI_API ImGui_ImplVulkanH_Window* ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window(void);
#endif

View File

@@ -0,0 +1,23 @@
#include "./imgui/imgui.h"
#ifdef IMGUI_ENABLE_FREETYPE
#include "./imgui/misc/freetype/imgui_freetype.h"
#endif
#include "./imgui/imgui_internal.h"
#include "cimgui.h"
GENERATED_PLACEHOLDER
#include "cimgui_impl.h"
#ifdef CIMGUI_USE_VULKAN
CIMGUI_API ImGui_ImplVulkanH_Window* ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window()
{
return IM_NEW(ImGui_ImplVulkanH_Window)();
}
CIMGUI_API void ImGui_ImplVulkanH_Window_Construct(ImGui_ImplVulkanH_Window* self)
{
IM_PLACEMENT_NEW(self) ImGui_ImplVulkanH_Window();
}
#endif

View File

@@ -949,6 +949,31 @@ local function AdjustArguments(FP)
end end
end end
end end
local function REPLACE_TEXTUREID(FP)
local defsT = FP.defsT
for numcdef,t in ipairs(FP.funcdefs) do
assert(t.cimguiname)
local cimf = defsT[t.cimguiname]
local defT = cimf[t.signature]
local hasTextureID = false
for i,arg in ipairs(defT.argsT) do
if arg.type == "ImTextureID" then print(t.cimguiname,t.signature);hasTextureID = true; break end
end
if hasTextureID then
for i,v in ipairs(defT.argsT) do
v.type = (v.type == "ImTextureID") and "ImTextureUserID" or v.type
end
--defaults table
for k,v in pairs(defT.defaults) do
if v:match"ImTextureID" then
error"default ImTextureID not implemented"
end
end
defT.args = defT.args:gsub("ImTextureID","ImTextureUserID")
defT.signature = defT.signature:gsub("ImTextureID","ImTextureUserID")
end
end
end
local function ADDIMSTR_S(FP) local function ADDIMSTR_S(FP)
local defsT = FP.defsT local defsT = FP.defsT
local newcdefs = {} local newcdefs = {}
@@ -1575,8 +1600,8 @@ function M.Parser()
--local ttype,template = it.item:match("([^%s,%(%)]+)%s*<(.+)>") --local ttype,template = it.item:match("([^%s,%(%)]+)%s*<(.+)>")
local ttype,template,te,code2 = check_template(it2) --it.item:match"([^%s,%(%)]+)%s*<(.+)>" local ttype,template,te,code2 = check_template(it2) --it.item:match"([^%s,%(%)]+)%s*<(.+)>"
if template then if template then
--print("not doheader",ttype,template,te) --print("not doheader",ttype,template,te, self.typenames[ttype])
if self.typenames[ttype] ~= template then --rule out T (template typename) if self.typenames[ttype] ~= template and self.typenames[ttype].."*" ~= template then --rule out T (template typename)
self.templates[ttype] = self.templates[ttype] or {} self.templates[ttype] = self.templates[ttype] or {}
self.templates[ttype][template] = te self.templates[ttype][template] = te
it2=code2 it2=code2
@@ -2115,6 +2140,11 @@ function M.Parser()
for k,v in pairs(self.alltypes) do print(k, typetoStr(k) ) end for k,v in pairs(self.alltypes) do print(k, typetoStr(k) ) end
end end
function par:compute_overloads() function par:compute_overloads()
-- if self.IMGUI_HAS_TEXTURES then
-- print"----------replacing ImTextureID with ImTextureUserID"
-- REPLACE_TEXTUREID(self)
-- print"----------end replacing ImTextureID with ImTextureUserID"
-- end
ADDIMSTR_S(self) ADDIMSTR_S(self)
local strt = {} local strt = {}
local numoverloaded = 0 local numoverloaded = 0

View File

@@ -20,7 +20,7 @@ set PATH=%PATH%;C:\anima;C:\mingws\i686-7.2.0-release-posix-dwarf-rt_v5-rev1\min
:: examples: "" "internal" "internal comments" :: examples: "" "internal" "internal comments"
:: arg[3..n] name of implementations to generate and/or CFLAGS (e.g. -DIMGUI_USER_CONFIG) :: arg[3..n] name of implementations to generate and/or CFLAGS (e.g. -DIMGUI_USER_CONFIG)
::-DIMGUI_USE_WCHAR32 should not be used (is discarded) ::-DIMGUI_USE_WCHAR32 should not be used (is discarded)
luajit ./generator.lua gcc "internal noimstrv" glfw opengl3 opengl2 sdl2 sdl3 -DIMGUI_USE_WCHAR32 %* luajit ./generator.lua gcc "internal noimstrv" glfw opengl3 opengl2 sdl2 sdl3 vulkan %*
::leave console open ::leave console open
cmd /k cmd /k

View File

@@ -13,6 +13,7 @@ local CONSTRUCTORS_GENERATION = script_args[2]:match("constructors") and true or
local NOCHAR = script_args[2]:match("nochar") and true or false local NOCHAR = script_args[2]:match("nochar") and true or false
local NOIMSTRV = script_args[2]:match("noimstrv") and true or false local NOIMSTRV = script_args[2]:match("noimstrv") and true or false
local IMGUI_PATH = os.getenv"IMGUI_PATH" or "../imgui" local IMGUI_PATH = os.getenv"IMGUI_PATH" or "../imgui"
local CONFIG_GENERATOR_PATH = os.getenv"CONFIG_GENERATOR_PATH" or "./config_generator.lua"
local CFLAGS = "" local CFLAGS = ""
local CPRE,CTEST local CPRE,CTEST
--get implementations --get implementations
@@ -91,6 +92,10 @@ local cimgui_skipped = {
--desired name --desired name
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
local cimgui_overloads = { local cimgui_overloads = {
-- igGetIO = {
-- ["()"] = "igGetIO",
-- ["(ImGuiContext*)"] = "igGetIOEx",
-- },
--igPushID = { --igPushID = {
--["(const char*)"] = "igPushIDStr", --["(const char*)"] = "igPushIDStr",
--["(const char*,const char*)"] = "igPushIDRange", --["(const char*,const char*)"] = "igPushIDRange",
@@ -124,16 +129,18 @@ local function func_header_impl_generate(FP)
local cimf = FP.defsT[t.cimguiname] local cimf = FP.defsT[t.cimguiname]
local def = cimf[t.signature] local def = cimf[t.signature]
local addcoment = def.comment or "" local addcoment = def.comment or ""
local empty = def.args:match("^%(%)") --no args
if def.constructor then if def.constructor then
-- it happens with vulkan impl but constructor ImGui_ImplVulkanH_Window is not needed -- only vulkan is manually created
--assert(def.stname ~= "","constructor without struct") assert(def.ov_cimguiname=="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window" or
--table.insert(outtab,"CIMGUI_API "..def.stname.."* "..def.ov_cimguiname ..(empty and "(void)" or --def.args)..";"..addcoment.."\n") def.ov_cimguiname=="ImGui_ImplVulkanH_Window_Construct", "not cpp for "..def.ov_cimguiname)
assert(def.stname ~= "","constructor without struct")
table.insert(outtab,"CIMGUI_API "..def.stname.."* "..def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n")
elseif def.destructor then elseif def.destructor then
--table.insert(outtab,"CIMGUI_API void "..def.ov_cimguiname..def.args..";"..addcoment.."\n") --table.insert(outtab,"CIMGUI_API void "..def.ov_cimguiname..def.args..";"..addcoment.."\n")
else else
if def.stname == "" then --ImGui namespace or top level if def.stname == "" then --ImGui namespace or top level
local empty = def.args:match("^%(%)") --no args
table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..(empty and "(void)" or def.args)..";"..addcoment.."\n") table.insert(outtab,"CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname..(empty and "(void)" or def.args)..";"..addcoment.."\n")
else else
cpp2ffi.prtable(def) cpp2ffi.prtable(def)
@@ -314,8 +321,8 @@ end
-------------------------------------------------------- --------------------------------------------------------
--get imgui.h version and IMGUI_HAS_DOCK-------------------------- --get imgui.h version and IMGUI_HAS_DOCK--------------------------
--defines for the cl compiler must be present in the print_defines.cpp file --defines for the cl compiler must be present in the print_defines.cpp file
gdefines = get_defines{"IMGUI_VERSION","IMGUI_VERSION_NUM","FLT_MAX","FLT_MIN","IMGUI_HAS_DOCK","IMGUI_HAS_IMSTR","ImDrawCallback_ResetRenderState"} gdefines = get_defines{"IMGUI_VERSION","IMGUI_VERSION_NUM","FLT_MAX","FLT_MIN","IMGUI_HAS_DOCK","IMGUI_HAS_IMSTR","ImDrawCallback_ResetRenderState","IMGUI_HAS_TEXTURES"}
--cpp2ffi.prtable(gdefines) cpp2ffi.prtable(gdefines)
if gdefines.IMGUI_HAS_DOCK then gdefines.IMGUI_HAS_DOCK = true end if gdefines.IMGUI_HAS_DOCK then gdefines.IMGUI_HAS_DOCK = true end
if gdefines.IMGUI_HAS_IMSTR then gdefines.IMGUI_HAS_IMSTR = true end if gdefines.IMGUI_HAS_IMSTR then gdefines.IMGUI_HAS_IMSTR = true end
@@ -335,6 +342,7 @@ if gdefines.IMGUI_HAS_DOCK then
end end
assert(not NOCHAR or not NOIMSTRV,"nochar and noimstrv cant be set at the same time") assert(not NOCHAR or not NOIMSTRV,"nochar and noimstrv cant be set at the same time")
print("IMGUI_HAS_IMSTR",gdefines.IMGUI_HAS_IMSTR) print("IMGUI_HAS_IMSTR",gdefines.IMGUI_HAS_IMSTR)
print("IMGUI_HAS_TEXTURES",gdefines.IMGUI_HAS_TEXTURES and true)
print("NOCHAR",NOCHAR) print("NOCHAR",NOCHAR)
print("NOIMSTRV",NOIMSTRV) print("NOIMSTRV",NOIMSTRV)
print("IMGUI_HAS_DOCK",gdefines.IMGUI_HAS_DOCK) print("IMGUI_HAS_DOCK",gdefines.IMGUI_HAS_DOCK)
@@ -374,6 +382,7 @@ local function parseImGuiHeader(header,names)
parser.CONSTRUCTORS_GENERATION = CONSTRUCTORS_GENERATION parser.CONSTRUCTORS_GENERATION = CONSTRUCTORS_GENERATION
parser.NOCHAR = NOCHAR parser.NOCHAR = NOCHAR
parser.NOIMSTRV = NOIMSTRV parser.NOIMSTRV = NOIMSTRV
parser.IMGUI_HAS_TEXTURES = gdefines.IMGUI_HAS_TEXTURES
parser.custom_function_post = custom_function_post parser.custom_function_post = custom_function_post
parser.header_text_insert = header_text_insert parser.header_text_insert = header_text_insert
local defines = parser:take_lines(CPRE..header,names,COMPILER) local defines = parser:take_lines(CPRE..header,names,COMPILER)
@@ -446,11 +455,18 @@ local parser2
if #implementations > 0 then if #implementations > 0 then
print("------------------implementations generation with "..COMPILER.."------------------------") print("------------------implementations generation with "..COMPILER.."------------------------")
--parser2 for function defs
--parser3 for separated structs and enums in cimgui_impl.h
parser2 = cpp2ffi.Parser() parser2 = cpp2ffi.Parser()
local config = require"config_generator" local config = dofile(CONFIG_GENERATOR_PATH) --"./config_generator.lua"
local impl_str = "" local impl_str = ""
local impl_str_cpp = {}
for i,impl in ipairs(implementations) do for i,impl in ipairs(implementations) do
table.insert(impl_str_cpp, "\n#ifdef CIMGUI_USE_" .. string.upper(impl))
table.insert(impl_str_cpp, [[#include "imgui_impl_]]..impl..[[.h"]])
table.insert(impl_str_cpp, "#endif")
local source = backends_folder .. [[imgui_impl_]].. impl .. ".h " local source = backends_folder .. [[imgui_impl_]].. impl .. ".h "
local locati = [[imgui_impl_]].. impl local locati = [[imgui_impl_]].. impl
@@ -464,27 +480,38 @@ if #implementations > 0 then
extra_includes = extra_includes .. include_cmd .. inc .. " " extra_includes = extra_includes .. include_cmd .. inc .. " "
end end
end end
parser2.cimgui_inherited = dofile([[../../cimgui/generator/output/structs_and_enums.lua]])
local defines = parser2:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER) local defines = parser2:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER)
local parser3 = cpp2ffi.Parser() local parser3 = cpp2ffi.Parser()
parser3.cimgui_inherited = dofile([[../../cimgui/generator/output/structs_and_enums.lua]])
parser3:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER) parser3:take_lines(CPRE..extra_defines..extra_includes..source, {locati}, COMPILER)
parser3:do_parse() parser3:do_parse()
local cfuncsstr = func_header_impl_generate(parser3) local cfuncsstr = func_header_impl_generate(parser3)
local cstructstr1,cstructstr2 = parser3.structs_and_enums[1], parser3.structs_and_enums[2] local cstructstr1,cstructstr2 = parser3.structs_and_enums[1], parser3.structs_and_enums[2]
impl_str = impl_str .. "#ifdef CIMGUI_USE_".. string.upper(impl).."\n" .. cstructstr1 .. cstructstr2 .. cfuncsstr .. "\n#endif\n" local cstru = cstructstr1 .. cstructstr2
if cstru ~="" then
cstru = "#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n"..cstru .."\n#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n"
end
impl_str = impl_str .. "#ifdef CIMGUI_USE_".. string.upper(impl).."\n".. cstru
local outtab = cpp2ffi.func_header_generate_structs(parser3)
if #outtab > 0 then
table.insert(outtab, 1, "#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
table.insert(outtab,"#endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS\n")
end
impl_str = impl_str.. table.concat(outtab)..cfuncsstr .. "\n#endif\n"
end end
parser2:do_parse() parser2:do_parse()
-- save ./cimgui_impl.h
--local cfuncsstr = func_header_impl_generate(parser2)
--local cstructstr1,cstructstr2 = parser2.structs_and_enums[1], parser2.structs_and_enums[2]
--save_data("./output/cimgui_impl.h",cstructstr1,cstructstr2,cfuncsstr)
save_data("./output/cimgui_impl.h",impl_str) save_data("./output/cimgui_impl.h",impl_str)
----------save fundefs in impl_definitions.lua for using in bindings ----------save fundefs in impl_definitions.lua for using in bindings
save_data("./output/impl_definitions.lua",serializeTableF(parser2.defsT)) save_data("./output/impl_definitions.lua",serializeTableF(parser2.defsT))
--impl cpp
impl_str_cpp = table.concat(impl_str_cpp, "\n")
local cppstr = read_data"./cimgui_impl_template.cpp"
cppstr = cppstr:gsub("GENERATED_PLACEHOLDER", impl_str_cpp)
save_data("./output/cimgui_impl.cpp",cppstr)
end -- #implementations > 0 then end -- #implementations > 0 then
@@ -516,7 +543,11 @@ end
--]] --]]
-------------------copy C files to repo root -------------------copy C files to repo root
copyfile("./output/cimgui.h", "../cimgui.h") copyfile("./output/cimgui.h", "../cimgui.h")
copyfile("./output/cimgui_impl.h", "../cimgui_impl.h")
copyfile("./output/cimgui_impl.cpp", "../cimgui_impl.cpp")
copyfile("./output/cimgui.cpp", "../cimgui.cpp") copyfile("./output/cimgui.cpp", "../cimgui.cpp")
os.remove("./output/cimgui.h") os.remove("./output/cimgui.h")
os.remove("./output/cimgui_impl.h")
os.remove("./output/cimgui_impl.cpp")
os.remove("./output/cimgui.cpp") os.remove("./output/cimgui.cpp")
print"all done!!" print"all done!!"

View File

@@ -25,7 +25,7 @@
POSITIONAL_ARGS=() POSITIONAL_ARGS=()
TARGETS="internal noimstrv" TARGETS="internal noimstrv"
CFLAGS="glfw opengl3 opengl2 sdl2 sdl3" CFLAGS="glfw opengl3 opengl2 sdl2 sdl3 vulkan"
help() { help() {
cat <<EOF cat <<EOF

View File

@@ -1,89 +0,0 @@
#ifdef CIMGUI_USE_GLFW
typedef struct GLFWwindow GLFWwindow;
typedef struct GLFWmonitor GLFWmonitor;
struct GLFWwindow;
struct GLFWmonitor;CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks);
CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks);
CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks);
CIMGUI_API void ImGui_ImplGlfw_Shutdown(void);
CIMGUI_API void ImGui_ImplGlfw_NewFrame(void);
CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window);
CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window);
CIMGUI_API void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows);
CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused);
CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered);
CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y);
CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods);
CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset);
CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods);
CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c);
CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event);
CIMGUI_API void ImGui_ImplGlfw_Sleep(int milliseconds);
#endif
#ifdef CIMGUI_USE_OPENGL3
CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version);
CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void);
CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void);
CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data);
CIMGUI_API bool ImGui_ImplOpenGL3_CreateFontsTexture(void);
CIMGUI_API void ImGui_ImplOpenGL3_DestroyFontsTexture(void);
CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void);
CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void);
#endif
#ifdef CIMGUI_USE_OPENGL2
CIMGUI_API bool ImGui_ImplOpenGL2_Init(void);
CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void);
CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void);
CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data);
CIMGUI_API bool ImGui_ImplOpenGL2_CreateFontsTexture(void);
CIMGUI_API void ImGui_ImplOpenGL2_DestroyFontsTexture(void);
CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void);
CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void);
#endif
#ifdef CIMGUI_USE_SDL2
typedef struct SDL_Window SDL_Window;
typedef struct SDL_Renderer SDL_Renderer;
typedef struct _SDL_GameController _SDL_GameController;
struct SDL_Window;
struct SDL_Renderer;
struct _SDL_GameController;
typedef union SDL_Event SDL_Event;
typedef enum { ImGui_ImplSDL2_GamepadMode_AutoFirst, ImGui_ImplSDL2_GamepadMode_AutoAll, ImGui_ImplSDL2_GamepadMode_Manual }ImGui_ImplSDL2_GamepadMode;CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context);
CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer);
CIMGUI_API bool ImGui_ImplSDL2_InitForOther(SDL_Window* window);
CIMGUI_API void ImGui_ImplSDL2_Shutdown(void);
CIMGUI_API void ImGui_ImplSDL2_NewFrame(void);
CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event);
CIMGUI_API void ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode mode,struct _SDL_GameController** manual_gamepads_array,int manual_gamepads_count);
#endif
#ifdef CIMGUI_USE_SDL3
typedef struct SDL_Window SDL_Window;
typedef struct SDL_Renderer SDL_Renderer;
typedef struct SDL_Gamepad SDL_Gamepad;
struct SDL_Window;
struct SDL_Renderer;
struct SDL_Gamepad;
typedef union SDL_Event SDL_Event;
typedef enum { ImGui_ImplSDL3_GamepadMode_AutoFirst, ImGui_ImplSDL3_GamepadMode_AutoAll, ImGui_ImplSDL3_GamepadMode_Manual }ImGui_ImplSDL3_GamepadMode;CIMGUI_API bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window,void* sdl_gl_context);
CIMGUI_API bool ImGui_ImplSDL3_InitForVulkan(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForD3D(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForMetal(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer);
CIMGUI_API bool ImGui_ImplSDL3_InitForSDLGPU(SDL_Window* window);
CIMGUI_API bool ImGui_ImplSDL3_InitForOther(SDL_Window* window);
CIMGUI_API void ImGui_ImplSDL3_Shutdown(void);
CIMGUI_API void ImGui_ImplSDL3_NewFrame(void);
CIMGUI_API bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event);
CIMGUI_API void ImGui_ImplSDL3_SetGamepadMode(ImGui_ImplSDL3_GamepadMode mode,SDL_Gamepad** manual_gamepads_array,int manual_gamepads_count);
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@
"cimguiname": "ImGui_ImplGlfw_CharCallback", "cimguiname": "ImGui_ImplGlfw_CharCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_CharCallback", "funcname": "ImGui_ImplGlfw_CharCallback",
"location": "imgui_impl_glfw:61", "location": "imgui_impl_glfw:63",
"ov_cimguiname": "ImGui_ImplGlfw_CharCallback", "ov_cimguiname": "ImGui_ImplGlfw_CharCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,unsigned int)", "signature": "(GLFWwindow*,unsigned int)",
@@ -42,7 +42,7 @@
"cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", "cimguiname": "ImGui_ImplGlfw_CursorEnterCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_CursorEnterCallback", "funcname": "ImGui_ImplGlfw_CursorEnterCallback",
"location": "imgui_impl_glfw:56", "location": "imgui_impl_glfw:58",
"ov_cimguiname": "ImGui_ImplGlfw_CursorEnterCallback", "ov_cimguiname": "ImGui_ImplGlfw_CursorEnterCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,int)", "signature": "(GLFWwindow*,int)",
@@ -71,7 +71,7 @@
"cimguiname": "ImGui_ImplGlfw_CursorPosCallback", "cimguiname": "ImGui_ImplGlfw_CursorPosCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_CursorPosCallback", "funcname": "ImGui_ImplGlfw_CursorPosCallback",
"location": "imgui_impl_glfw:57", "location": "imgui_impl_glfw:59",
"ov_cimguiname": "ImGui_ImplGlfw_CursorPosCallback", "ov_cimguiname": "ImGui_ImplGlfw_CursorPosCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,double,double)", "signature": "(GLFWwindow*,double,double)",
@@ -96,7 +96,7 @@
"cimguiname": "ImGui_ImplGlfw_InitForOpenGL", "cimguiname": "ImGui_ImplGlfw_InitForOpenGL",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_InitForOpenGL", "funcname": "ImGui_ImplGlfw_InitForOpenGL",
"location": "imgui_impl_glfw:32", "location": "imgui_impl_glfw:34",
"ov_cimguiname": "ImGui_ImplGlfw_InitForOpenGL", "ov_cimguiname": "ImGui_ImplGlfw_InitForOpenGL",
"ret": "bool", "ret": "bool",
"signature": "(GLFWwindow*,bool)", "signature": "(GLFWwindow*,bool)",
@@ -121,7 +121,7 @@
"cimguiname": "ImGui_ImplGlfw_InitForOther", "cimguiname": "ImGui_ImplGlfw_InitForOther",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_InitForOther", "funcname": "ImGui_ImplGlfw_InitForOther",
"location": "imgui_impl_glfw:34", "location": "imgui_impl_glfw:36",
"ov_cimguiname": "ImGui_ImplGlfw_InitForOther", "ov_cimguiname": "ImGui_ImplGlfw_InitForOther",
"ret": "bool", "ret": "bool",
"signature": "(GLFWwindow*,bool)", "signature": "(GLFWwindow*,bool)",
@@ -146,7 +146,7 @@
"cimguiname": "ImGui_ImplGlfw_InitForVulkan", "cimguiname": "ImGui_ImplGlfw_InitForVulkan",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_InitForVulkan", "funcname": "ImGui_ImplGlfw_InitForVulkan",
"location": "imgui_impl_glfw:33", "location": "imgui_impl_glfw:35",
"ov_cimguiname": "ImGui_ImplGlfw_InitForVulkan", "ov_cimguiname": "ImGui_ImplGlfw_InitForVulkan",
"ret": "bool", "ret": "bool",
"signature": "(GLFWwindow*,bool)", "signature": "(GLFWwindow*,bool)",
@@ -167,7 +167,7 @@
"cimguiname": "ImGui_ImplGlfw_InstallCallbacks", "cimguiname": "ImGui_ImplGlfw_InstallCallbacks",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_InstallCallbacks", "funcname": "ImGui_ImplGlfw_InstallCallbacks",
"location": "imgui_impl_glfw:47", "location": "imgui_impl_glfw:49",
"ov_cimguiname": "ImGui_ImplGlfw_InstallCallbacks", "ov_cimguiname": "ImGui_ImplGlfw_InstallCallbacks",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*)", "signature": "(GLFWwindow*)",
@@ -204,7 +204,7 @@
"cimguiname": "ImGui_ImplGlfw_KeyCallback", "cimguiname": "ImGui_ImplGlfw_KeyCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_KeyCallback", "funcname": "ImGui_ImplGlfw_KeyCallback",
"location": "imgui_impl_glfw:60", "location": "imgui_impl_glfw:62",
"ov_cimguiname": "ImGui_ImplGlfw_KeyCallback", "ov_cimguiname": "ImGui_ImplGlfw_KeyCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,int,int,int,int)", "signature": "(GLFWwindow*,int,int,int,int)",
@@ -229,7 +229,7 @@
"cimguiname": "ImGui_ImplGlfw_MonitorCallback", "cimguiname": "ImGui_ImplGlfw_MonitorCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_MonitorCallback", "funcname": "ImGui_ImplGlfw_MonitorCallback",
"location": "imgui_impl_glfw:62", "location": "imgui_impl_glfw:64",
"ov_cimguiname": "ImGui_ImplGlfw_MonitorCallback", "ov_cimguiname": "ImGui_ImplGlfw_MonitorCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWmonitor*,int)", "signature": "(GLFWmonitor*,int)",
@@ -262,7 +262,7 @@
"cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", "cimguiname": "ImGui_ImplGlfw_MouseButtonCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_MouseButtonCallback", "funcname": "ImGui_ImplGlfw_MouseButtonCallback",
"location": "imgui_impl_glfw:58", "location": "imgui_impl_glfw:60",
"ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback", "ov_cimguiname": "ImGui_ImplGlfw_MouseButtonCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,int,int,int)", "signature": "(GLFWwindow*,int,int,int)",
@@ -278,7 +278,7 @@
"cimguiname": "ImGui_ImplGlfw_NewFrame", "cimguiname": "ImGui_ImplGlfw_NewFrame",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_NewFrame", "funcname": "ImGui_ImplGlfw_NewFrame",
"location": "imgui_impl_glfw:36", "location": "imgui_impl_glfw:38",
"ov_cimguiname": "ImGui_ImplGlfw_NewFrame", "ov_cimguiname": "ImGui_ImplGlfw_NewFrame",
"ret": "void", "ret": "void",
"signature": "()", "signature": "()",
@@ -299,7 +299,7 @@
"cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", "cimguiname": "ImGui_ImplGlfw_RestoreCallbacks",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_RestoreCallbacks", "funcname": "ImGui_ImplGlfw_RestoreCallbacks",
"location": "imgui_impl_glfw:48", "location": "imgui_impl_glfw:50",
"ov_cimguiname": "ImGui_ImplGlfw_RestoreCallbacks", "ov_cimguiname": "ImGui_ImplGlfw_RestoreCallbacks",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*)", "signature": "(GLFWwindow*)",
@@ -328,7 +328,7 @@
"cimguiname": "ImGui_ImplGlfw_ScrollCallback", "cimguiname": "ImGui_ImplGlfw_ScrollCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_ScrollCallback", "funcname": "ImGui_ImplGlfw_ScrollCallback",
"location": "imgui_impl_glfw:59", "location": "imgui_impl_glfw:61",
"ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback", "ov_cimguiname": "ImGui_ImplGlfw_ScrollCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,double,double)", "signature": "(GLFWwindow*,double,double)",
@@ -349,7 +349,7 @@
"cimguiname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows", "cimguiname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows", "funcname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
"location": "imgui_impl_glfw:52", "location": "imgui_impl_glfw:54",
"ov_cimguiname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows", "ov_cimguiname": "ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
"ret": "void", "ret": "void",
"signature": "(bool)", "signature": "(bool)",
@@ -365,7 +365,7 @@
"cimguiname": "ImGui_ImplGlfw_Shutdown", "cimguiname": "ImGui_ImplGlfw_Shutdown",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_Shutdown", "funcname": "ImGui_ImplGlfw_Shutdown",
"location": "imgui_impl_glfw:35", "location": "imgui_impl_glfw:37",
"ov_cimguiname": "ImGui_ImplGlfw_Shutdown", "ov_cimguiname": "ImGui_ImplGlfw_Shutdown",
"ret": "void", "ret": "void",
"signature": "()", "signature": "()",
@@ -386,7 +386,7 @@
"cimguiname": "ImGui_ImplGlfw_Sleep", "cimguiname": "ImGui_ImplGlfw_Sleep",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_Sleep", "funcname": "ImGui_ImplGlfw_Sleep",
"location": "imgui_impl_glfw:65", "location": "imgui_impl_glfw:67",
"ov_cimguiname": "ImGui_ImplGlfw_Sleep", "ov_cimguiname": "ImGui_ImplGlfw_Sleep",
"ret": "void", "ret": "void",
"signature": "(int)", "signature": "(int)",
@@ -411,7 +411,7 @@
"cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", "cimguiname": "ImGui_ImplGlfw_WindowFocusCallback",
"defaults": {}, "defaults": {},
"funcname": "ImGui_ImplGlfw_WindowFocusCallback", "funcname": "ImGui_ImplGlfw_WindowFocusCallback",
"location": "imgui_impl_glfw:55", "location": "imgui_impl_glfw:57",
"ov_cimguiname": "ImGui_ImplGlfw_WindowFocusCallback", "ov_cimguiname": "ImGui_ImplGlfw_WindowFocusCallback",
"ret": "void", "ret": "void",
"signature": "(GLFWwindow*,int)", "signature": "(GLFWwindow*,int)",
@@ -1149,5 +1149,478 @@
"signature": "()", "signature": "()",
"stname": "" "stname": ""
} }
],
"ImGui_ImplVulkanH_CreateOrResizeWindow": [
{
"args": "(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)",
"argsT": [
{
"name": "instance",
"type": "VkInstance"
},
{
"name": "physical_device",
"type": "VkPhysicalDevice"
},
{
"name": "device",
"type": "VkDevice"
},
{
"name": "wd",
"type": "ImGui_ImplVulkanH_Window*"
},
{
"name": "queue_family",
"type": "uint32_t"
},
{
"name": "allocator",
"type": "const VkAllocationCallbacks*"
},
{
"name": "w",
"type": "int"
},
{
"name": "h",
"type": "int"
},
{
"name": "min_image_count",
"type": "uint32_t"
}
],
"argsoriginal": "(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)",
"call_args": "(instance,physical_device,device,wd,queue_family,allocator,w,h,min_image_count)",
"cimguiname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
"location": "imgui_impl_vulkan:166",
"ov_cimguiname": "ImGui_ImplVulkanH_CreateOrResizeWindow",
"ret": "void",
"signature": "(VkInstance,VkPhysicalDevice,VkDevice,ImGui_ImplVulkanH_Window*,uint32_t,const VkAllocationCallbacks*,int,int,uint32_t)",
"stname": ""
}
],
"ImGui_ImplVulkanH_DestroyWindow": [
{
"args": "(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator)",
"argsT": [
{
"name": "instance",
"type": "VkInstance"
},
{
"name": "device",
"type": "VkDevice"
},
{
"name": "wd",
"type": "ImGui_ImplVulkanH_Window*"
},
{
"name": "allocator",
"type": "const VkAllocationCallbacks*"
}
],
"argsoriginal": "(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator)",
"call_args": "(instance,device,wd,allocator)",
"cimguiname": "ImGui_ImplVulkanH_DestroyWindow",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_DestroyWindow",
"location": "imgui_impl_vulkan:167",
"ov_cimguiname": "ImGui_ImplVulkanH_DestroyWindow",
"ret": "void",
"signature": "(VkInstance,VkDevice,ImGui_ImplVulkanH_Window*,const VkAllocationCallbacks*)",
"stname": ""
}
],
"ImGui_ImplVulkanH_GetMinImageCountFromPresentMode": [
{
"args": "(VkPresentModeKHR present_mode)",
"argsT": [
{
"name": "present_mode",
"type": "VkPresentModeKHR"
}
],
"argsoriginal": "(VkPresentModeKHR present_mode)",
"call_args": "(present_mode)",
"cimguiname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
"location": "imgui_impl_vulkan:172",
"ov_cimguiname": "ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
"ret": "int",
"signature": "(VkPresentModeKHR)",
"stname": ""
}
],
"ImGui_ImplVulkanH_SelectPhysicalDevice": [
{
"args": "(VkInstance instance)",
"argsT": [
{
"name": "instance",
"type": "VkInstance"
}
],
"argsoriginal": "(VkInstance instance)",
"call_args": "(instance)",
"cimguiname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
"location": "imgui_impl_vulkan:170",
"ov_cimguiname": "ImGui_ImplVulkanH_SelectPhysicalDevice",
"ret": "VkPhysicalDevice",
"signature": "(VkInstance)",
"stname": ""
}
],
"ImGui_ImplVulkanH_SelectPresentMode": [
{
"args": "(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count)",
"argsT": [
{
"name": "physical_device",
"type": "VkPhysicalDevice"
},
{
"name": "surface",
"type": "VkSurfaceKHR"
},
{
"name": "request_modes",
"type": "const VkPresentModeKHR*"
},
{
"name": "request_modes_count",
"type": "int"
}
],
"argsoriginal": "(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count)",
"call_args": "(physical_device,surface,request_modes,request_modes_count)",
"cimguiname": "ImGui_ImplVulkanH_SelectPresentMode",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_SelectPresentMode",
"location": "imgui_impl_vulkan:169",
"ov_cimguiname": "ImGui_ImplVulkanH_SelectPresentMode",
"ret": "VkPresentModeKHR",
"signature": "(VkPhysicalDevice,VkSurfaceKHR,const VkPresentModeKHR*,int)",
"stname": ""
}
],
"ImGui_ImplVulkanH_SelectQueueFamilyIndex": [
{
"args": "(VkPhysicalDevice physical_device)",
"argsT": [
{
"name": "physical_device",
"type": "VkPhysicalDevice"
}
],
"argsoriginal": "(VkPhysicalDevice physical_device)",
"call_args": "(physical_device)",
"cimguiname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
"location": "imgui_impl_vulkan:171",
"ov_cimguiname": "ImGui_ImplVulkanH_SelectQueueFamilyIndex",
"ret": "uint32_t",
"signature": "(VkPhysicalDevice)",
"stname": ""
}
],
"ImGui_ImplVulkanH_SelectSurfaceFormat": [
{
"args": "(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space)",
"argsT": [
{
"name": "physical_device",
"type": "VkPhysicalDevice"
},
{
"name": "surface",
"type": "VkSurfaceKHR"
},
{
"name": "request_formats",
"type": "const VkFormat*"
},
{
"name": "request_formats_count",
"type": "int"
},
{
"name": "request_color_space",
"type": "VkColorSpaceKHR"
}
],
"argsoriginal": "(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space)",
"call_args": "(physical_device,surface,request_formats,request_formats_count,request_color_space)",
"cimguiname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
"defaults": {},
"funcname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
"location": "imgui_impl_vulkan:168",
"ov_cimguiname": "ImGui_ImplVulkanH_SelectSurfaceFormat",
"ret": "VkSurfaceFormatKHR",
"signature": "(VkPhysicalDevice,VkSurfaceKHR,const VkFormat*,int,VkColorSpaceKHR)",
"stname": ""
}
],
"ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window": [
{
"args": "()",
"argsT": [],
"argsoriginal": "()",
"call_args": "()",
"cimguiname": "ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
"constructor": true,
"defaults": {},
"funcname": "ImGui_ImplVulkanH_Window",
"location": "imgui_impl_vulkan:214",
"ov_cimguiname": "ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
"signature": "()",
"stname": "ImGui_ImplVulkanH_Window"
}
],
"ImGui_ImplVulkanH_Window_destroy": [
{
"args": "(ImGui_ImplVulkanH_Window* self)",
"argsT": [
{
"name": "self",
"type": "ImGui_ImplVulkanH_Window*"
}
],
"call_args": "(self)",
"cimguiname": "ImGui_ImplVulkanH_Window_destroy",
"defaults": {},
"destructor": true,
"location": "imgui_impl_vulkan:214",
"ov_cimguiname": "ImGui_ImplVulkanH_Window_destroy",
"ret": "void",
"signature": "(ImGui_ImplVulkanH_Window*)",
"stname": "ImGui_ImplVulkanH_Window"
}
],
"ImGui_ImplVulkan_AddTexture": [
{
"args": "(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
"argsT": [
{
"name": "sampler",
"type": "VkSampler"
},
{
"name": "image_view",
"type": "VkImageView"
},
{
"name": "image_layout",
"type": "VkImageLayout"
}
],
"argsoriginal": "(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
"call_args": "(sampler,image_view,image_layout)",
"cimguiname": "ImGui_ImplVulkan_AddTexture",
"defaults": {},
"funcname": "ImGui_ImplVulkan_AddTexture",
"location": "imgui_impl_vulkan:123",
"ov_cimguiname": "ImGui_ImplVulkan_AddTexture",
"ret": "VkDescriptorSet",
"signature": "(VkSampler,VkImageView,VkImageLayout)",
"stname": ""
}
],
"ImGui_ImplVulkan_CreateFontsTexture": [
{
"args": "()",
"argsT": [],
"argsoriginal": "()",
"call_args": "()",
"cimguiname": "ImGui_ImplVulkan_CreateFontsTexture",
"defaults": {},
"funcname": "ImGui_ImplVulkan_CreateFontsTexture",
"location": "imgui_impl_vulkan:116",
"ov_cimguiname": "ImGui_ImplVulkan_CreateFontsTexture",
"ret": "bool",
"signature": "()",
"stname": ""
}
],
"ImGui_ImplVulkan_DestroyFontsTexture": [
{
"args": "()",
"argsT": [],
"argsoriginal": "()",
"call_args": "()",
"cimguiname": "ImGui_ImplVulkan_DestroyFontsTexture",
"defaults": {},
"funcname": "ImGui_ImplVulkan_DestroyFontsTexture",
"location": "imgui_impl_vulkan:117",
"ov_cimguiname": "ImGui_ImplVulkan_DestroyFontsTexture",
"ret": "void",
"signature": "()",
"stname": ""
}
],
"ImGui_ImplVulkan_Init": [
{
"args": "(ImGui_ImplVulkan_InitInfo* info)",
"argsT": [
{
"name": "info",
"type": "ImGui_ImplVulkan_InitInfo*"
}
],
"argsoriginal": "(ImGui_ImplVulkan_InitInfo* info)",
"call_args": "(info)",
"cimguiname": "ImGui_ImplVulkan_Init",
"defaults": {},
"funcname": "ImGui_ImplVulkan_Init",
"location": "imgui_impl_vulkan:112",
"ov_cimguiname": "ImGui_ImplVulkan_Init",
"ret": "bool",
"signature": "(ImGui_ImplVulkan_InitInfo*)",
"stname": ""
}
],
"ImGui_ImplVulkan_LoadFunctions": [
{
"args": "(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data)",
"argsT": [
{
"name": "api_version",
"type": "uint32_t"
},
{
"name": "user_data)",
"type": "PFN_vkVoidFunction(*loader_func)(const char* function_name,void*"
},
{
"name": "user_data",
"type": "void*"
}
],
"argsoriginal": "(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data=nullptr)",
"call_args": "(api_version,user_data),user_data)",
"cimguiname": "ImGui_ImplVulkan_LoadFunctions",
"defaults": {
"user_data": "nullptr"
},
"funcname": "ImGui_ImplVulkan_LoadFunctions",
"location": "imgui_impl_vulkan:128",
"ov_cimguiname": "ImGui_ImplVulkan_LoadFunctions",
"ret": "bool",
"signature": "(uint32_t,PFN_vkVoidFunction(*loader_func)(const char* function_name,void*,void*)",
"stname": ""
}
],
"ImGui_ImplVulkan_NewFrame": [
{
"args": "()",
"argsT": [],
"argsoriginal": "()",
"call_args": "()",
"cimguiname": "ImGui_ImplVulkan_NewFrame",
"defaults": {},
"funcname": "ImGui_ImplVulkan_NewFrame",
"location": "imgui_impl_vulkan:114",
"ov_cimguiname": "ImGui_ImplVulkan_NewFrame",
"ret": "void",
"signature": "()",
"stname": ""
}
],
"ImGui_ImplVulkan_RemoveTexture": [
{
"args": "(VkDescriptorSet descriptor_set)",
"argsT": [
{
"name": "descriptor_set",
"type": "VkDescriptorSet"
}
],
"argsoriginal": "(VkDescriptorSet descriptor_set)",
"call_args": "(descriptor_set)",
"cimguiname": "ImGui_ImplVulkan_RemoveTexture",
"defaults": {},
"funcname": "ImGui_ImplVulkan_RemoveTexture",
"location": "imgui_impl_vulkan:124",
"ov_cimguiname": "ImGui_ImplVulkan_RemoveTexture",
"ret": "void",
"signature": "(VkDescriptorSet)",
"stname": ""
}
],
"ImGui_ImplVulkan_RenderDrawData": [
{
"args": "(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline)",
"argsT": [
{
"name": "draw_data",
"type": "ImDrawData*"
},
{
"name": "command_buffer",
"type": "VkCommandBuffer"
},
{
"name": "pipeline",
"type": "VkPipeline"
}
],
"argsoriginal": "(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline=0ULL)",
"call_args": "(draw_data,command_buffer,pipeline)",
"cimguiname": "ImGui_ImplVulkan_RenderDrawData",
"defaults": {
"pipeline": "0ULL"
},
"funcname": "ImGui_ImplVulkan_RenderDrawData",
"location": "imgui_impl_vulkan:115",
"ov_cimguiname": "ImGui_ImplVulkan_RenderDrawData",
"ret": "void",
"signature": "(ImDrawData*,VkCommandBuffer,VkPipeline)",
"stname": ""
}
],
"ImGui_ImplVulkan_SetMinImageCount": [
{
"args": "(uint32_t min_image_count)",
"argsT": [
{
"name": "min_image_count",
"type": "uint32_t"
}
],
"argsoriginal": "(uint32_t min_image_count)",
"call_args": "(min_image_count)",
"cimguiname": "ImGui_ImplVulkan_SetMinImageCount",
"defaults": {},
"funcname": "ImGui_ImplVulkan_SetMinImageCount",
"location": "imgui_impl_vulkan:118",
"ov_cimguiname": "ImGui_ImplVulkan_SetMinImageCount",
"ret": "void",
"signature": "(uint32_t)",
"stname": ""
}
],
"ImGui_ImplVulkan_Shutdown": [
{
"args": "()",
"argsT": [],
"argsoriginal": "()",
"call_args": "()",
"cimguiname": "ImGui_ImplVulkan_Shutdown",
"defaults": {},
"funcname": "ImGui_ImplVulkan_Shutdown",
"location": "imgui_impl_vulkan:113",
"ov_cimguiname": "ImGui_ImplVulkan_Shutdown",
"ret": "void",
"signature": "()",
"stname": ""
}
] ]
} }

View File

@@ -14,7 +14,7 @@ local t={
cimguiname="ImGui_ImplGlfw_CharCallback", cimguiname="ImGui_ImplGlfw_CharCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_CharCallback", funcname="ImGui_ImplGlfw_CharCallback",
location="imgui_impl_glfw:61", location="imgui_impl_glfw:63",
ov_cimguiname="ImGui_ImplGlfw_CharCallback", ov_cimguiname="ImGui_ImplGlfw_CharCallback",
ret="void", ret="void",
signature="(GLFWwindow*,unsigned int)", signature="(GLFWwindow*,unsigned int)",
@@ -35,7 +35,7 @@ local t={
cimguiname="ImGui_ImplGlfw_CursorEnterCallback", cimguiname="ImGui_ImplGlfw_CursorEnterCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_CursorEnterCallback", funcname="ImGui_ImplGlfw_CursorEnterCallback",
location="imgui_impl_glfw:56", location="imgui_impl_glfw:58",
ov_cimguiname="ImGui_ImplGlfw_CursorEnterCallback", ov_cimguiname="ImGui_ImplGlfw_CursorEnterCallback",
ret="void", ret="void",
signature="(GLFWwindow*,int)", signature="(GLFWwindow*,int)",
@@ -59,7 +59,7 @@ local t={
cimguiname="ImGui_ImplGlfw_CursorPosCallback", cimguiname="ImGui_ImplGlfw_CursorPosCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_CursorPosCallback", funcname="ImGui_ImplGlfw_CursorPosCallback",
location="imgui_impl_glfw:57", location="imgui_impl_glfw:59",
ov_cimguiname="ImGui_ImplGlfw_CursorPosCallback", ov_cimguiname="ImGui_ImplGlfw_CursorPosCallback",
ret="void", ret="void",
signature="(GLFWwindow*,double,double)", signature="(GLFWwindow*,double,double)",
@@ -80,7 +80,7 @@ local t={
cimguiname="ImGui_ImplGlfw_InitForOpenGL", cimguiname="ImGui_ImplGlfw_InitForOpenGL",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_InitForOpenGL", funcname="ImGui_ImplGlfw_InitForOpenGL",
location="imgui_impl_glfw:32", location="imgui_impl_glfw:34",
ov_cimguiname="ImGui_ImplGlfw_InitForOpenGL", ov_cimguiname="ImGui_ImplGlfw_InitForOpenGL",
ret="bool", ret="bool",
signature="(GLFWwindow*,bool)", signature="(GLFWwindow*,bool)",
@@ -101,7 +101,7 @@ local t={
cimguiname="ImGui_ImplGlfw_InitForOther", cimguiname="ImGui_ImplGlfw_InitForOther",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_InitForOther", funcname="ImGui_ImplGlfw_InitForOther",
location="imgui_impl_glfw:34", location="imgui_impl_glfw:36",
ov_cimguiname="ImGui_ImplGlfw_InitForOther", ov_cimguiname="ImGui_ImplGlfw_InitForOther",
ret="bool", ret="bool",
signature="(GLFWwindow*,bool)", signature="(GLFWwindow*,bool)",
@@ -122,7 +122,7 @@ local t={
cimguiname="ImGui_ImplGlfw_InitForVulkan", cimguiname="ImGui_ImplGlfw_InitForVulkan",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_InitForVulkan", funcname="ImGui_ImplGlfw_InitForVulkan",
location="imgui_impl_glfw:33", location="imgui_impl_glfw:35",
ov_cimguiname="ImGui_ImplGlfw_InitForVulkan", ov_cimguiname="ImGui_ImplGlfw_InitForVulkan",
ret="bool", ret="bool",
signature="(GLFWwindow*,bool)", signature="(GLFWwindow*,bool)",
@@ -140,7 +140,7 @@ local t={
cimguiname="ImGui_ImplGlfw_InstallCallbacks", cimguiname="ImGui_ImplGlfw_InstallCallbacks",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_InstallCallbacks", funcname="ImGui_ImplGlfw_InstallCallbacks",
location="imgui_impl_glfw:47", location="imgui_impl_glfw:49",
ov_cimguiname="ImGui_ImplGlfw_InstallCallbacks", ov_cimguiname="ImGui_ImplGlfw_InstallCallbacks",
ret="void", ret="void",
signature="(GLFWwindow*)", signature="(GLFWwindow*)",
@@ -170,7 +170,7 @@ local t={
cimguiname="ImGui_ImplGlfw_KeyCallback", cimguiname="ImGui_ImplGlfw_KeyCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_KeyCallback", funcname="ImGui_ImplGlfw_KeyCallback",
location="imgui_impl_glfw:60", location="imgui_impl_glfw:62",
ov_cimguiname="ImGui_ImplGlfw_KeyCallback", ov_cimguiname="ImGui_ImplGlfw_KeyCallback",
ret="void", ret="void",
signature="(GLFWwindow*,int,int,int,int)", signature="(GLFWwindow*,int,int,int,int)",
@@ -191,7 +191,7 @@ local t={
cimguiname="ImGui_ImplGlfw_MonitorCallback", cimguiname="ImGui_ImplGlfw_MonitorCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_MonitorCallback", funcname="ImGui_ImplGlfw_MonitorCallback",
location="imgui_impl_glfw:62", location="imgui_impl_glfw:64",
ov_cimguiname="ImGui_ImplGlfw_MonitorCallback", ov_cimguiname="ImGui_ImplGlfw_MonitorCallback",
ret="void", ret="void",
signature="(GLFWmonitor*,int)", signature="(GLFWmonitor*,int)",
@@ -218,7 +218,7 @@ local t={
cimguiname="ImGui_ImplGlfw_MouseButtonCallback", cimguiname="ImGui_ImplGlfw_MouseButtonCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_MouseButtonCallback", funcname="ImGui_ImplGlfw_MouseButtonCallback",
location="imgui_impl_glfw:58", location="imgui_impl_glfw:60",
ov_cimguiname="ImGui_ImplGlfw_MouseButtonCallback", ov_cimguiname="ImGui_ImplGlfw_MouseButtonCallback",
ret="void", ret="void",
signature="(GLFWwindow*,int,int,int)", signature="(GLFWwindow*,int,int,int)",
@@ -233,7 +233,7 @@ local t={
cimguiname="ImGui_ImplGlfw_NewFrame", cimguiname="ImGui_ImplGlfw_NewFrame",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_NewFrame", funcname="ImGui_ImplGlfw_NewFrame",
location="imgui_impl_glfw:36", location="imgui_impl_glfw:38",
ov_cimguiname="ImGui_ImplGlfw_NewFrame", ov_cimguiname="ImGui_ImplGlfw_NewFrame",
ret="void", ret="void",
signature="()", signature="()",
@@ -251,7 +251,7 @@ local t={
cimguiname="ImGui_ImplGlfw_RestoreCallbacks", cimguiname="ImGui_ImplGlfw_RestoreCallbacks",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_RestoreCallbacks", funcname="ImGui_ImplGlfw_RestoreCallbacks",
location="imgui_impl_glfw:48", location="imgui_impl_glfw:50",
ov_cimguiname="ImGui_ImplGlfw_RestoreCallbacks", ov_cimguiname="ImGui_ImplGlfw_RestoreCallbacks",
ret="void", ret="void",
signature="(GLFWwindow*)", signature="(GLFWwindow*)",
@@ -275,7 +275,7 @@ local t={
cimguiname="ImGui_ImplGlfw_ScrollCallback", cimguiname="ImGui_ImplGlfw_ScrollCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_ScrollCallback", funcname="ImGui_ImplGlfw_ScrollCallback",
location="imgui_impl_glfw:59", location="imgui_impl_glfw:61",
ov_cimguiname="ImGui_ImplGlfw_ScrollCallback", ov_cimguiname="ImGui_ImplGlfw_ScrollCallback",
ret="void", ret="void",
signature="(GLFWwindow*,double,double)", signature="(GLFWwindow*,double,double)",
@@ -293,7 +293,7 @@ local t={
cimguiname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows", cimguiname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows", funcname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
location="imgui_impl_glfw:52", location="imgui_impl_glfw:54",
ov_cimguiname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows", ov_cimguiname="ImGui_ImplGlfw_SetCallbacksChainForAllWindows",
ret="void", ret="void",
signature="(bool)", signature="(bool)",
@@ -308,7 +308,7 @@ local t={
cimguiname="ImGui_ImplGlfw_Shutdown", cimguiname="ImGui_ImplGlfw_Shutdown",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_Shutdown", funcname="ImGui_ImplGlfw_Shutdown",
location="imgui_impl_glfw:35", location="imgui_impl_glfw:37",
ov_cimguiname="ImGui_ImplGlfw_Shutdown", ov_cimguiname="ImGui_ImplGlfw_Shutdown",
ret="void", ret="void",
signature="()", signature="()",
@@ -326,7 +326,7 @@ local t={
cimguiname="ImGui_ImplGlfw_Sleep", cimguiname="ImGui_ImplGlfw_Sleep",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_Sleep", funcname="ImGui_ImplGlfw_Sleep",
location="imgui_impl_glfw:65", location="imgui_impl_glfw:67",
ov_cimguiname="ImGui_ImplGlfw_Sleep", ov_cimguiname="ImGui_ImplGlfw_Sleep",
ret="void", ret="void",
signature="(int)", signature="(int)",
@@ -347,7 +347,7 @@ local t={
cimguiname="ImGui_ImplGlfw_WindowFocusCallback", cimguiname="ImGui_ImplGlfw_WindowFocusCallback",
defaults={}, defaults={},
funcname="ImGui_ImplGlfw_WindowFocusCallback", funcname="ImGui_ImplGlfw_WindowFocusCallback",
location="imgui_impl_glfw:55", location="imgui_impl_glfw:57",
ov_cimguiname="ImGui_ImplGlfw_WindowFocusCallback", ov_cimguiname="ImGui_ImplGlfw_WindowFocusCallback",
ret="void", ret="void",
signature="(GLFWwindow*,int)", signature="(GLFWwindow*,int)",
@@ -996,6 +996,406 @@ local t={
ret="void", ret="void",
signature="()", signature="()",
stname=""}, stname=""},
["()"]=nil},
ImGui_ImplVulkanH_CreateOrResizeWindow={
[1]={
args="(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)",
argsT={
[1]={
name="instance",
type="VkInstance"},
[2]={
name="physical_device",
type="VkPhysicalDevice"},
[3]={
name="device",
type="VkDevice"},
[4]={
name="wd",
type="ImGui_ImplVulkanH_Window*"},
[5]={
name="queue_family",
type="uint32_t"},
[6]={
name="allocator",
type="const VkAllocationCallbacks*"},
[7]={
name="w",
type="int"},
[8]={
name="h",
type="int"},
[9]={
name="min_image_count",
type="uint32_t"}},
argsoriginal="(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)",
call_args="(instance,physical_device,device,wd,queue_family,allocator,w,h,min_image_count)",
cimguiname="ImGui_ImplVulkanH_CreateOrResizeWindow",
defaults={},
funcname="ImGui_ImplVulkanH_CreateOrResizeWindow",
location="imgui_impl_vulkan:166",
ov_cimguiname="ImGui_ImplVulkanH_CreateOrResizeWindow",
ret="void",
signature="(VkInstance,VkPhysicalDevice,VkDevice,ImGui_ImplVulkanH_Window*,uint32_t,const VkAllocationCallbacks*,int,int,uint32_t)",
stname=""},
["(VkInstance,VkPhysicalDevice,VkDevice,ImGui_ImplVulkanH_Window*,uint32_t,const VkAllocationCallbacks*,int,int,uint32_t)"]=nil},
ImGui_ImplVulkanH_DestroyWindow={
[1]={
args="(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator)",
argsT={
[1]={
name="instance",
type="VkInstance"},
[2]={
name="device",
type="VkDevice"},
[3]={
name="wd",
type="ImGui_ImplVulkanH_Window*"},
[4]={
name="allocator",
type="const VkAllocationCallbacks*"}},
argsoriginal="(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator)",
call_args="(instance,device,wd,allocator)",
cimguiname="ImGui_ImplVulkanH_DestroyWindow",
defaults={},
funcname="ImGui_ImplVulkanH_DestroyWindow",
location="imgui_impl_vulkan:167",
ov_cimguiname="ImGui_ImplVulkanH_DestroyWindow",
ret="void",
signature="(VkInstance,VkDevice,ImGui_ImplVulkanH_Window*,const VkAllocationCallbacks*)",
stname=""},
["(VkInstance,VkDevice,ImGui_ImplVulkanH_Window*,const VkAllocationCallbacks*)"]=nil},
ImGui_ImplVulkanH_GetMinImageCountFromPresentMode={
[1]={
args="(VkPresentModeKHR present_mode)",
argsT={
[1]={
name="present_mode",
type="VkPresentModeKHR"}},
argsoriginal="(VkPresentModeKHR present_mode)",
call_args="(present_mode)",
cimguiname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
defaults={},
funcname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
location="imgui_impl_vulkan:172",
ov_cimguiname="ImGui_ImplVulkanH_GetMinImageCountFromPresentMode",
ret="int",
signature="(VkPresentModeKHR)",
stname=""},
["(VkPresentModeKHR)"]=nil},
ImGui_ImplVulkanH_SelectPhysicalDevice={
[1]={
args="(VkInstance instance)",
argsT={
[1]={
name="instance",
type="VkInstance"}},
argsoriginal="(VkInstance instance)",
call_args="(instance)",
cimguiname="ImGui_ImplVulkanH_SelectPhysicalDevice",
defaults={},
funcname="ImGui_ImplVulkanH_SelectPhysicalDevice",
location="imgui_impl_vulkan:170",
ov_cimguiname="ImGui_ImplVulkanH_SelectPhysicalDevice",
ret="VkPhysicalDevice",
signature="(VkInstance)",
stname=""},
["(VkInstance)"]=nil},
ImGui_ImplVulkanH_SelectPresentMode={
[1]={
args="(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count)",
argsT={
[1]={
name="physical_device",
type="VkPhysicalDevice"},
[2]={
name="surface",
type="VkSurfaceKHR"},
[3]={
name="request_modes",
type="const VkPresentModeKHR*"},
[4]={
name="request_modes_count",
type="int"}},
argsoriginal="(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count)",
call_args="(physical_device,surface,request_modes,request_modes_count)",
cimguiname="ImGui_ImplVulkanH_SelectPresentMode",
defaults={},
funcname="ImGui_ImplVulkanH_SelectPresentMode",
location="imgui_impl_vulkan:169",
ov_cimguiname="ImGui_ImplVulkanH_SelectPresentMode",
ret="VkPresentModeKHR",
signature="(VkPhysicalDevice,VkSurfaceKHR,const VkPresentModeKHR*,int)",
stname=""},
["(VkPhysicalDevice,VkSurfaceKHR,const VkPresentModeKHR*,int)"]=nil},
ImGui_ImplVulkanH_SelectQueueFamilyIndex={
[1]={
args="(VkPhysicalDevice physical_device)",
argsT={
[1]={
name="physical_device",
type="VkPhysicalDevice"}},
argsoriginal="(VkPhysicalDevice physical_device)",
call_args="(physical_device)",
cimguiname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
defaults={},
funcname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
location="imgui_impl_vulkan:171",
ov_cimguiname="ImGui_ImplVulkanH_SelectQueueFamilyIndex",
ret="uint32_t",
signature="(VkPhysicalDevice)",
stname=""},
["(VkPhysicalDevice)"]=nil},
ImGui_ImplVulkanH_SelectSurfaceFormat={
[1]={
args="(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space)",
argsT={
[1]={
name="physical_device",
type="VkPhysicalDevice"},
[2]={
name="surface",
type="VkSurfaceKHR"},
[3]={
name="request_formats",
type="const VkFormat*"},
[4]={
name="request_formats_count",
type="int"},
[5]={
name="request_color_space",
type="VkColorSpaceKHR"}},
argsoriginal="(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space)",
call_args="(physical_device,surface,request_formats,request_formats_count,request_color_space)",
cimguiname="ImGui_ImplVulkanH_SelectSurfaceFormat",
defaults={},
funcname="ImGui_ImplVulkanH_SelectSurfaceFormat",
location="imgui_impl_vulkan:168",
ov_cimguiname="ImGui_ImplVulkanH_SelectSurfaceFormat",
ret="VkSurfaceFormatKHR",
signature="(VkPhysicalDevice,VkSurfaceKHR,const VkFormat*,int,VkColorSpaceKHR)",
stname=""},
["(VkPhysicalDevice,VkSurfaceKHR,const VkFormat*,int,VkColorSpaceKHR)"]=nil},
ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window={
[1]={
args="()",
argsT={},
argsoriginal="()",
call_args="()",
cimguiname="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
constructor=true,
defaults={},
funcname="ImGui_ImplVulkanH_Window",
location="imgui_impl_vulkan:214",
ov_cimguiname="ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window",
signature="()",
stname="ImGui_ImplVulkanH_Window"},
["()"]=nil},
ImGui_ImplVulkanH_Window_destroy={
[1]={
args="(ImGui_ImplVulkanH_Window* self)",
argsT={
[1]={
name="self",
type="ImGui_ImplVulkanH_Window*"}},
call_args="(self)",
cimguiname="ImGui_ImplVulkanH_Window_destroy",
defaults={},
destructor=true,
location="imgui_impl_vulkan:214",
ov_cimguiname="ImGui_ImplVulkanH_Window_destroy",
ret="void",
signature="(ImGui_ImplVulkanH_Window*)",
stname="ImGui_ImplVulkanH_Window"},
["(ImGui_ImplVulkanH_Window*)"]=nil},
ImGui_ImplVulkan_AddTexture={
[1]={
args="(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
argsT={
[1]={
name="sampler",
type="VkSampler"},
[2]={
name="image_view",
type="VkImageView"},
[3]={
name="image_layout",
type="VkImageLayout"}},
argsoriginal="(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout)",
call_args="(sampler,image_view,image_layout)",
cimguiname="ImGui_ImplVulkan_AddTexture",
defaults={},
funcname="ImGui_ImplVulkan_AddTexture",
location="imgui_impl_vulkan:123",
ov_cimguiname="ImGui_ImplVulkan_AddTexture",
ret="VkDescriptorSet",
signature="(VkSampler,VkImageView,VkImageLayout)",
stname=""},
["(VkSampler,VkImageView,VkImageLayout)"]=nil},
ImGui_ImplVulkan_CreateFontsTexture={
[1]={
args="()",
argsT={},
argsoriginal="()",
call_args="()",
cimguiname="ImGui_ImplVulkan_CreateFontsTexture",
defaults={},
funcname="ImGui_ImplVulkan_CreateFontsTexture",
location="imgui_impl_vulkan:116",
ov_cimguiname="ImGui_ImplVulkan_CreateFontsTexture",
ret="bool",
signature="()",
stname=""},
["()"]=nil},
ImGui_ImplVulkan_DestroyFontsTexture={
[1]={
args="()",
argsT={},
argsoriginal="()",
call_args="()",
cimguiname="ImGui_ImplVulkan_DestroyFontsTexture",
defaults={},
funcname="ImGui_ImplVulkan_DestroyFontsTexture",
location="imgui_impl_vulkan:117",
ov_cimguiname="ImGui_ImplVulkan_DestroyFontsTexture",
ret="void",
signature="()",
stname=""},
["()"]=nil},
ImGui_ImplVulkan_Init={
[1]={
args="(ImGui_ImplVulkan_InitInfo* info)",
argsT={
[1]={
name="info",
type="ImGui_ImplVulkan_InitInfo*"}},
argsoriginal="(ImGui_ImplVulkan_InitInfo* info)",
call_args="(info)",
cimguiname="ImGui_ImplVulkan_Init",
defaults={},
funcname="ImGui_ImplVulkan_Init",
location="imgui_impl_vulkan:112",
ov_cimguiname="ImGui_ImplVulkan_Init",
ret="bool",
signature="(ImGui_ImplVulkan_InitInfo*)",
stname=""},
["(ImGui_ImplVulkan_InitInfo*)"]=nil},
ImGui_ImplVulkan_LoadFunctions={
[1]={
args="(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data)",
argsT={
[1]={
name="api_version",
type="uint32_t"},
[2]={
name="user_data)",
type="PFN_vkVoidFunction(*loader_func)(const char* function_name,void*"},
[3]={
name="user_data",
type="void*"}},
argsoriginal="(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data=nullptr)",
call_args="(api_version,user_data),user_data)",
cimguiname="ImGui_ImplVulkan_LoadFunctions",
defaults={
user_data="nullptr"},
funcname="ImGui_ImplVulkan_LoadFunctions",
location="imgui_impl_vulkan:128",
ov_cimguiname="ImGui_ImplVulkan_LoadFunctions",
ret="bool",
signature="(uint32_t,PFN_vkVoidFunction(*loader_func)(const char* function_name,void*,void*)",
stname=""},
["(uint32_t,PFN_vkVoidFunction(*loader_func)(const char* function_name,void*,void*)"]=nil},
ImGui_ImplVulkan_NewFrame={
[1]={
args="()",
argsT={},
argsoriginal="()",
call_args="()",
cimguiname="ImGui_ImplVulkan_NewFrame",
defaults={},
funcname="ImGui_ImplVulkan_NewFrame",
location="imgui_impl_vulkan:114",
ov_cimguiname="ImGui_ImplVulkan_NewFrame",
ret="void",
signature="()",
stname=""},
["()"]=nil},
ImGui_ImplVulkan_RemoveTexture={
[1]={
args="(VkDescriptorSet descriptor_set)",
argsT={
[1]={
name="descriptor_set",
type="VkDescriptorSet"}},
argsoriginal="(VkDescriptorSet descriptor_set)",
call_args="(descriptor_set)",
cimguiname="ImGui_ImplVulkan_RemoveTexture",
defaults={},
funcname="ImGui_ImplVulkan_RemoveTexture",
location="imgui_impl_vulkan:124",
ov_cimguiname="ImGui_ImplVulkan_RemoveTexture",
ret="void",
signature="(VkDescriptorSet)",
stname=""},
["(VkDescriptorSet)"]=nil},
ImGui_ImplVulkan_RenderDrawData={
[1]={
args="(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline)",
argsT={
[1]={
name="draw_data",
type="ImDrawData*"},
[2]={
name="command_buffer",
type="VkCommandBuffer"},
[3]={
name="pipeline",
type="VkPipeline"}},
argsoriginal="(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline=0ULL)",
call_args="(draw_data,command_buffer,pipeline)",
cimguiname="ImGui_ImplVulkan_RenderDrawData",
defaults={
pipeline="0ULL"},
funcname="ImGui_ImplVulkan_RenderDrawData",
location="imgui_impl_vulkan:115",
ov_cimguiname="ImGui_ImplVulkan_RenderDrawData",
ret="void",
signature="(ImDrawData*,VkCommandBuffer,VkPipeline)",
stname=""},
["(ImDrawData*,VkCommandBuffer,VkPipeline)"]=nil},
ImGui_ImplVulkan_SetMinImageCount={
[1]={
args="(uint32_t min_image_count)",
argsT={
[1]={
name="min_image_count",
type="uint32_t"}},
argsoriginal="(uint32_t min_image_count)",
call_args="(min_image_count)",
cimguiname="ImGui_ImplVulkan_SetMinImageCount",
defaults={},
funcname="ImGui_ImplVulkan_SetMinImageCount",
location="imgui_impl_vulkan:118",
ov_cimguiname="ImGui_ImplVulkan_SetMinImageCount",
ret="void",
signature="(uint32_t)",
stname=""},
["(uint32_t)"]=nil},
ImGui_ImplVulkan_Shutdown={
[1]={
args="()",
argsT={},
argsoriginal="()",
call_args="()",
cimguiname="ImGui_ImplVulkan_Shutdown",
defaults={},
funcname="ImGui_ImplVulkan_Shutdown",
location="imgui_impl_vulkan:113",
ov_cimguiname="ImGui_ImplVulkan_Shutdown",
ret="void",
signature="()",
stname=""},
["()"]=nil}} ["()"]=nil}}
t.ImGui_ImplGlfw_CharCallback["(GLFWwindow*,unsigned int)"]=t.ImGui_ImplGlfw_CharCallback[1] t.ImGui_ImplGlfw_CharCallback["(GLFWwindow*,unsigned int)"]=t.ImGui_ImplGlfw_CharCallback[1]
t.ImGui_ImplGlfw_CursorEnterCallback["(GLFWwindow*,int)"]=t.ImGui_ImplGlfw_CursorEnterCallback[1] t.ImGui_ImplGlfw_CursorEnterCallback["(GLFWwindow*,int)"]=t.ImGui_ImplGlfw_CursorEnterCallback[1]
@@ -1051,4 +1451,23 @@ t.ImGui_ImplSDL3_NewFrame["()"]=t.ImGui_ImplSDL3_NewFrame[1]
t.ImGui_ImplSDL3_ProcessEvent["(const SDL_Event*)"]=t.ImGui_ImplSDL3_ProcessEvent[1] t.ImGui_ImplSDL3_ProcessEvent["(const SDL_Event*)"]=t.ImGui_ImplSDL3_ProcessEvent[1]
t.ImGui_ImplSDL3_SetGamepadMode["(ImGui_ImplSDL3_GamepadMode,SDL_Gamepad**,int)"]=t.ImGui_ImplSDL3_SetGamepadMode[1] t.ImGui_ImplSDL3_SetGamepadMode["(ImGui_ImplSDL3_GamepadMode,SDL_Gamepad**,int)"]=t.ImGui_ImplSDL3_SetGamepadMode[1]
t.ImGui_ImplSDL3_Shutdown["()"]=t.ImGui_ImplSDL3_Shutdown[1] t.ImGui_ImplSDL3_Shutdown["()"]=t.ImGui_ImplSDL3_Shutdown[1]
t.ImGui_ImplVulkanH_CreateOrResizeWindow["(VkInstance,VkPhysicalDevice,VkDevice,ImGui_ImplVulkanH_Window*,uint32_t,const VkAllocationCallbacks*,int,int,uint32_t)"]=t.ImGui_ImplVulkanH_CreateOrResizeWindow[1]
t.ImGui_ImplVulkanH_DestroyWindow["(VkInstance,VkDevice,ImGui_ImplVulkanH_Window*,const VkAllocationCallbacks*)"]=t.ImGui_ImplVulkanH_DestroyWindow[1]
t.ImGui_ImplVulkanH_GetMinImageCountFromPresentMode["(VkPresentModeKHR)"]=t.ImGui_ImplVulkanH_GetMinImageCountFromPresentMode[1]
t.ImGui_ImplVulkanH_SelectPhysicalDevice["(VkInstance)"]=t.ImGui_ImplVulkanH_SelectPhysicalDevice[1]
t.ImGui_ImplVulkanH_SelectPresentMode["(VkPhysicalDevice,VkSurfaceKHR,const VkPresentModeKHR*,int)"]=t.ImGui_ImplVulkanH_SelectPresentMode[1]
t.ImGui_ImplVulkanH_SelectQueueFamilyIndex["(VkPhysicalDevice)"]=t.ImGui_ImplVulkanH_SelectQueueFamilyIndex[1]
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_CreateFontsTexture["()"]=t.ImGui_ImplVulkan_CreateFontsTexture[1]
t.ImGui_ImplVulkan_DestroyFontsTexture["()"]=t.ImGui_ImplVulkan_DestroyFontsTexture[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]
t.ImGui_ImplVulkan_NewFrame["()"]=t.ImGui_ImplVulkan_NewFrame[1]
t.ImGui_ImplVulkan_RemoveTexture["(VkDescriptorSet)"]=t.ImGui_ImplVulkan_RemoveTexture[1]
t.ImGui_ImplVulkan_RenderDrawData["(ImDrawData*,VkCommandBuffer,VkPipeline)"]=t.ImGui_ImplVulkan_RenderDrawData[1]
t.ImGui_ImplVulkan_SetMinImageCount["(uint32_t)"]=t.ImGui_ImplVulkan_SetMinImageCount[1]
t.ImGui_ImplVulkan_Shutdown["()"]=t.ImGui_ImplVulkan_Shutdown[1]
return t return t

View File

@@ -123,9 +123,15 @@ igGetID 4
igGetIDWithSeed 2 igGetIDWithSeed 2
1 ImGuiID igGetIDWithSeed_Str (const char*,const char*,ImGuiID) 1 ImGuiID igGetIDWithSeed_Str (const char*,const char*,ImGuiID)
2 ImGuiID igGetIDWithSeed_Int (int,ImGuiID) 2 ImGuiID igGetIDWithSeed_Int (int,ImGuiID)
igGetIO 2
1 ImGuiIO* igGetIO_Nil ()
2 ImGuiIO* igGetIO_ContextPtr (ImGuiContext*)
igGetKeyData 2 igGetKeyData 2
1 ImGuiKeyData* igGetKeyData_ContextPtr (ImGuiContext*,ImGuiKey) 1 ImGuiKeyData* igGetKeyData_ContextPtr (ImGuiContext*,ImGuiKey)
2 ImGuiKeyData* igGetKeyData_Key (ImGuiKey) 2 ImGuiKeyData* igGetKeyData_Key (ImGuiKey)
igGetPlatformIO 2
1 ImGuiPlatformIO* igGetPlatformIO_Nil ()
2 ImGuiPlatformIO* igGetPlatformIO_ContextPtr (ImGuiContext*)
igImAbs 3 igImAbs 3
1 int igImAbs_Int (int) 1 int igImAbs_Int (int)
2 float igImAbs_Float (float) 2 float igImAbs_Float (float)
@@ -293,4 +299,4 @@ igValue 4
2 void igValue_Int (const char*,int) 2 void igValue_Int (const char*,int)
3 void igValue_Uint (const char*,unsigned int) 3 void igValue_Uint (const char*,unsigned int)
4 void igValue_Float (const char*,float,const char*) 4 void igValue_Float (const char*,float,const char*)
205 overloaded 209 overloaded

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -44,7 +44,6 @@
"ImGuiDataType": "int", "ImGuiDataType": "int",
"ImGuiDataTypeInfo": "struct ImGuiDataTypeInfo", "ImGuiDataTypeInfo": "struct ImGuiDataTypeInfo",
"ImGuiDataTypeStorage": "struct ImGuiDataTypeStorage", "ImGuiDataTypeStorage": "struct ImGuiDataTypeStorage",
"ImGuiDataVarInfo": "struct ImGuiDataVarInfo",
"ImGuiDeactivatedItemData": "struct ImGuiDeactivatedItemData", "ImGuiDeactivatedItemData": "struct ImGuiDeactivatedItemData",
"ImGuiDebugAllocEntry": "struct ImGuiDebugAllocEntry", "ImGuiDebugAllocEntry": "struct ImGuiDebugAllocEntry",
"ImGuiDebugAllocInfo": "struct ImGuiDebugAllocInfo", "ImGuiDebugAllocInfo": "struct ImGuiDebugAllocInfo",
@@ -141,6 +140,7 @@
"ImGuiStyle": "struct ImGuiStyle", "ImGuiStyle": "struct ImGuiStyle",
"ImGuiStyleMod": "struct ImGuiStyleMod", "ImGuiStyleMod": "struct ImGuiStyleMod",
"ImGuiStyleVar": "int", "ImGuiStyleVar": "int",
"ImGuiStyleVarInfo": "struct ImGuiStyleVarInfo",
"ImGuiTabBar": "struct ImGuiTabBar", "ImGuiTabBar": "struct ImGuiTabBar",
"ImGuiTabBarFlags": "int", "ImGuiTabBarFlags": "int",
"ImGuiTabItem": "struct ImGuiTabItem", "ImGuiTabItem": "struct ImGuiTabItem",

View File

@@ -44,7 +44,6 @@ local t={
ImGuiDataType="int", ImGuiDataType="int",
ImGuiDataTypeInfo="struct ImGuiDataTypeInfo", ImGuiDataTypeInfo="struct ImGuiDataTypeInfo",
ImGuiDataTypeStorage="struct ImGuiDataTypeStorage", ImGuiDataTypeStorage="struct ImGuiDataTypeStorage",
ImGuiDataVarInfo="struct ImGuiDataVarInfo",
ImGuiDeactivatedItemData="struct ImGuiDeactivatedItemData", ImGuiDeactivatedItemData="struct ImGuiDeactivatedItemData",
ImGuiDebugAllocEntry="struct ImGuiDebugAllocEntry", ImGuiDebugAllocEntry="struct ImGuiDebugAllocEntry",
ImGuiDebugAllocInfo="struct ImGuiDebugAllocInfo", ImGuiDebugAllocInfo="struct ImGuiDebugAllocInfo",
@@ -141,6 +140,7 @@ local t={
ImGuiStyle="struct ImGuiStyle", ImGuiStyle="struct ImGuiStyle",
ImGuiStyleMod="struct ImGuiStyleMod", ImGuiStyleMod="struct ImGuiStyleMod",
ImGuiStyleVar="int", ImGuiStyleVar="int",
ImGuiStyleVarInfo="struct ImGuiStyleVarInfo",
ImGuiTabBar="struct ImGuiTabBar", ImGuiTabBar="struct ImGuiTabBar",
ImGuiTabBarFlags="int", ImGuiTabBarFlags="int",
ImGuiTabItem="struct ImGuiTabItem", ImGuiTabItem="struct ImGuiTabItem",

View File

@@ -31,3 +31,7 @@
#ifdef ImDrawCallback_ResetRenderState #ifdef ImDrawCallback_ResetRenderState
#pragma message(CIMGUI_DEFSTRING(ImDrawCallback_ResetRenderState)) #pragma message(CIMGUI_DEFSTRING(ImDrawCallback_ResetRenderState))
#endif #endif
#ifdef IMGUI_HAS_TEXTURES
#pragma message(CIMGUI_DEFSTRING(IMGUI_HAS_TEXTURES))
#endif

2
imgui

Submodule imgui updated: 11b3a7c8ca...4806a1924f

View File

@@ -11,6 +11,8 @@
#define igDebugCheckVersionAndDataLayout igDebugCheckVersionAndDataLayout_Str #define igDebugCheckVersionAndDataLayout igDebugCheckVersionAndDataLayout_Str
#endif #endif
#define igGetIO igGetIO_Nil
int main(void) int main(void)
{ {
assert(igDebugCheckVersionAndDataLayout(igGetVersion(), sizeof(ImGuiIO), sizeof(ImGuiStyle), assert(igDebugCheckVersionAndDataLayout(igGetVersion(), sizeof(ImGuiIO), sizeof(ImGuiStyle),