Skip to content

Commit c54831a

Browse files
committed
update imgui to version 1.91.1 and README.md, freeze developing for now
1 parent c49398d commit c54831a

File tree

15 files changed

+221
-64
lines changed

15 files changed

+221
-64
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ target_link_libraries(
285285
)
286286
endif(APPLE)
287287

288-
option(DEV_BACKGROUND_TASK "Developping background task feature" ON)
288+
option(DEV_BACKGROUND_TASK "Developping background task feature" OFF)
289289
if(DEV_BACKGROUND_TASK)
290290
target_compile_definitions(${MEDIA_EDITOR_BINARY} PRIVATE ENABLE_BACKGROUND_TASK)
291291
endif()

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<div>
2525
<a href="https://github.com/opencodewin/MediaEditor/releases/tag/v0.9.9"><img alt="v0.9.9" src="docs/assets/version_4.svg" /></a>
2626

27+
<h3>&nbsp;&nbsp;⚠️⚠️⚠️&nbsp; Update on December 4, 2024.</h3>
28+
<h4> We are very sorry, since we disable some code of submodules, Mec 0.9.9 is broken build for a long time. For this project, our developers selflessly provided time, energy, and financial resources, but it is now difficult to have the financial support to complete the promised features. </h4>
29+
<h4> Currently project has been suspended, until we can find new resource or financial support. </h4>
2730
<h3>&nbsp;&nbsp;🎉🎉🎉&nbsp; Released on February 28, 2024.</h3>
2831

2932
- <h4>【New 🔥】Graphic operation mode for video attribute editing.</h4>

imgui/addon/ImVulkanShader/imvk_image_mat.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ inline VkImageMat& VkImageMat::operator=(const ImMat& m)
198198

199199
inline void VkImageMat::allocate_buffer()
200200
{
201-
size_t totalsize = Im_AlignSize(total() * elemsize, 4);
201+
size_t totalsize = Im_AlignSize(total() * elemsize, IM_CSTEP_ALIGN);
202202

203203
data = ((VkAllocator*)allocator)->fastMalloc(w, h, c, elemsize, elempack);
204204
if (!data)
@@ -288,7 +288,7 @@ inline void VkImageMat::create(int _w, int _h, int _c, size_t _elemsize, VkAlloc
288288
color_range = IM_CR_FULL_RANGE;
289289
depth = _elemsize == 1 ? 8 : _elemsize == 2 ? 16 : 32;
290290

291-
cstep = Im_AlignSize((size_t)w * h * elemsize, 16) / elemsize;
291+
cstep = Im_AlignSize((size_t)w * h * elemsize, IM_CSTEP_ALIGN) / elemsize;
292292

293293
if (total() > 0)
294294
allocate_buffer();
@@ -378,7 +378,7 @@ inline void VkImageMat::create(int _w, int _h, int _c, size_t _elemsize, int _el
378378
color_range = IM_CR_FULL_RANGE;
379379
depth = _elemsize == 1 ? 8 : _elemsize == 2 ? 16 : 32;
380380

381-
cstep = Im_AlignSize((size_t)w * h * elemsize, 16) / elemsize;
381+
cstep = Im_AlignSize((size_t)w * h * elemsize, IM_CSTEP_ALIGN) / elemsize;
382382

383383
if (total() > 0)
384384
allocate_buffer();

imgui/addon/ImVulkanShader/imvk_mat.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ inline VkMat& VkMat::operator=(const ImMat& m)
204204

205205
inline void VkMat::allocate_buffer()
206206
{
207-
size_t totalsize = Im_AlignSize(total() * elemsize, 4);
207+
size_t totalsize = Im_AlignSize(total() * elemsize, IM_CSTEP_ALIGN);
208208

209209
data = ((VkAllocator*)allocator)->fastMalloc(totalsize);
210210
if (!data)
@@ -310,7 +310,7 @@ inline void VkMat::create(int _w, int _h, int _c, size_t _elemsize, VkAllocator*
310310
duration = NAN;
311311
index_count = -1;
312312

313-
cstep = Im_AlignSize((size_t)w * h * elemsize, 16) / elemsize;
313+
cstep = Im_AlignSize((size_t)w * h * elemsize, IM_CSTEP_ALIGN) / elemsize;
314314

315315
if (total() > 0)
316316
allocate_buffer();
@@ -415,7 +415,7 @@ inline void VkMat::create(int _w, int _h, int _c, size_t _elemsize, int _elempac
415415
duration = NAN;
416416
index_count = -1;
417417

418-
cstep = Im_AlignSize((size_t)w * h * elemsize, 16) / elemsize;
418+
cstep = Im_AlignSize((size_t)w * h * elemsize, IM_CSTEP_ALIGN) / elemsize;
419419

420420
if (total() > 0)
421421
allocate_buffer();
@@ -509,7 +509,7 @@ inline void VkMat::create_type(int _w, int _h, int _c, ImDataType _t, VkAllocato
509509
dh = h = _h;
510510
c = _c;
511511

512-
cstep = Im_AlignSize((size_t)w * h * elemsize, 16) / elemsize;
512+
cstep = Im_AlignSize((size_t)w * h * elemsize, IM_CSTEP_ALIGN) / elemsize;
513513
type = _t;
514514
color_space = IM_CS_SRGB;
515515
color_format = c == 1 ? IM_CF_GRAY : c == 3 ? IM_CF_BGR : IM_CF_ABGR;

imgui/backends/imgui_impl_glfw.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,11 @@ void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows)
590590
}
591591

592592
#ifdef __EMSCRIPTEN__
593-
EM_JS(void, ImGui_ImplGlfw_EmscriptenOpenURL, (char const* url), { url = url ? UTF8ToString(url) : null; if (url) window.open(url, '_blank'); });
593+
#if EMSCRIPTEN_USE_PORT_CONTRIB_GLFW3 >= 3'4'0'20240817
594+
void ImGui_ImplGlfw_EmscriptenOpenURL(const char* url) { if (url) emscripten::glfw3::OpenURL(url); }
595+
#else
596+
EM_JS(void, ImGui_ImplGlfw_EmscriptenOpenURL, (const char* url), { url = url ? UTF8ToString(url) : null; if (url) window.open(url, '_blank'); });
597+
#endif
594598
#endif
595599

596600
static bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks, GlfwClientApi client_api)

imgui/backends/imgui_impl_sdl2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ static void ImGui_ImplSDL2_PlatformSetImeData(ImGuiContext*, ImGuiViewport* view
206206
r.h = (int)data->InputLineHeight;
207207
SDL_SetTextInputRect(&r);
208208
#ifdef _WIN32
209-
SDL_Window* window = (SDL_Window*)viewport->PlatformHandle;
209+
Uint32 windowID = (Uint32)(intptr_t)(viewport->PlatformHandle);
210+
SDL_Window* window = SDL_GetWindowFromID(windowID);
210211
if (window)
211212
{
212213
SDL_SysWMinfo wmInfo;

imgui/backends/imgui_impl_vulkan.cpp

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,22 @@ ImTextureID ImGui_ImplVulkan_CreateTexture(const void * pixels, int width, int h
23782378
copyBufferToImage(v, commandPool, stagingBuffer, 0, texture->textureImage,
23792379
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
23802380
}
2381+
else if (bit_depth == 16)
2382+
{
2383+
VkImage textureImage = VK_NULL_HANDLE;
2384+
VkDeviceMemory textureImageMemory = VK_NULL_HANDLE;
2385+
createImage(v, width, height, VK_FORMAT_R16G16B16A16_UNORM,
2386+
VK_IMAGE_TILING_OPTIMAL,
2387+
VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
2388+
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
2389+
textureImage, textureImageMemory);
2390+
copyBufferToImage(v, commandPool, stagingBuffer, 0, textureImage,
2391+
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
2392+
BlitImage(v, commandPool, textureImage, texture->textureImage,
2393+
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
2394+
vkDestroyImage(v->Device, textureImage, v->Allocator);
2395+
vkFreeMemory(v->Device, textureImageMemory, v->Allocator);
2396+
}
23812397
else if (bit_depth == 32)
23822398
{
23832399
VkImage textureImage = VK_NULL_HANDLE;
@@ -2438,6 +2454,22 @@ ImTextureID ImGui_ImplVulkan_CreateTexture(VkBuffer buffer, size_t buffer_offset
24382454
copyBufferToImage(v, commandPool, buffer, buffer_offset, texture->textureImage,
24392455
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
24402456
}
2457+
else if (bit_depth == 16)
2458+
{
2459+
VkImage textureImage = VK_NULL_HANDLE;
2460+
VkDeviceMemory textureImageMemory = VK_NULL_HANDLE;
2461+
createImage(v, width, height, VK_FORMAT_R16G16B16A16_UNORM,
2462+
VK_IMAGE_TILING_OPTIMAL,
2463+
VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
2464+
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
2465+
textureImage, textureImageMemory);
2466+
copyBufferToImage(v, commandPool, buffer, buffer_offset, textureImage,
2467+
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
2468+
BlitImage(v, commandPool, textureImage, texture->textureImage,
2469+
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
2470+
vkDestroyImage(v->Device, textureImage, v->Allocator);
2471+
vkFreeMemory(v->Device, textureImageMemory, v->Allocator);
2472+
}
24412473
else if (bit_depth == 32)
24422474
{
24432475
VkImage textureImage = VK_NULL_HANDLE;
@@ -2486,6 +2518,23 @@ void ImGui_ImplVulkan_UpdateTexture(ImTextureID textureid, VkBuffer stagingBuffe
24862518
copyBufferToImage(v, commandPool, stagingBuffer, buffer_offset, texture->textureImage,
24872519
static_cast<uint32_t>(width), static_cast<uint32_t>(height), offset_x, offset_y);
24882520
}
2521+
else if (bit_depth == 16)
2522+
{
2523+
VkImage textureImage = VK_NULL_HANDLE;
2524+
VkDeviceMemory textureImageMemory = VK_NULL_HANDLE;
2525+
createImage(v, static_cast<uint32_t>(width), static_cast<uint32_t>(height), VK_FORMAT_R16G16B16A16_UNORM,
2526+
VK_IMAGE_TILING_OPTIMAL,
2527+
VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
2528+
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
2529+
textureImage, textureImageMemory);
2530+
copyBufferToImage(v, commandPool, stagingBuffer, buffer_offset, textureImage,
2531+
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
2532+
BlitImage(v, commandPool, textureImage, texture->textureImage,
2533+
static_cast<uint32_t>(width), static_cast<uint32_t>(height),
2534+
offset_x, offset_y);
2535+
vkDestroyImage(v->Device, textureImage, v->Allocator);
2536+
vkFreeMemory(v->Device, textureImageMemory, v->Allocator);
2537+
}
24892538
else if (bit_depth == 32)
24902539
{
24912540
VkImage textureImage = VK_NULL_HANDLE;
@@ -2550,6 +2599,23 @@ void ImGui_ImplVulkan_UpdateTexture(ImTextureID textureid, const void * pixels,
25502599
copyBufferToImage(v, commandPool, stagingBuffer, 0, texture->textureImage,
25512600
static_cast<uint32_t>(width), static_cast<uint32_t>(height), offset_x, offset_y);
25522601
}
2602+
else if (bit_depth == 16)
2603+
{
2604+
VkImage textureImage = VK_NULL_HANDLE;
2605+
VkDeviceMemory textureImageMemory = VK_NULL_HANDLE;
2606+
createImage(v, static_cast<uint32_t>(width), static_cast<uint32_t>(height), VK_FORMAT_R16G16B16A16_UNORM,
2607+
VK_IMAGE_TILING_OPTIMAL,
2608+
VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT,
2609+
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
2610+
textureImage, textureImageMemory);
2611+
copyBufferToImage(v, commandPool, stagingBuffer, 0, textureImage,
2612+
static_cast<uint32_t>(width), static_cast<uint32_t>(height));
2613+
BlitImage(v, commandPool, textureImage, texture->textureImage,
2614+
static_cast<uint32_t>(width), static_cast<uint32_t>(height),
2615+
offset_x, offset_y);
2616+
vkDestroyImage(v->Device, textureImage, v->Allocator);
2617+
vkFreeMemory(v->Device, textureImageMemory, v->Allocator);
2618+
}
25532619
else if (bit_depth == 32)
25542620
{
25552621
VkImage textureImage = VK_NULL_HANDLE;

imgui/imgui.cpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.1 WIP
1+
// dear imgui, v1.91.1
22
// (main code and documentation)
33

44
// Help:
@@ -4485,7 +4485,7 @@ bool ImGui::IsItemHovered(ImGuiHoveredFlags flags)
44854485
const float delay = CalcDelayFromHoveredFlags(flags);
44864486
if (delay > 0.0f || (flags & ImGuiHoveredFlags_Stationary))
44874487
{
4488-
ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromRectangle(g.LastItemData.Rect);
4488+
ImGuiID hover_delay_id = (g.LastItemData.ID != 0) ? g.LastItemData.ID : window->GetIDFromPos(g.LastItemData.Rect.Min);
44894489
if ((flags & ImGuiHoveredFlags_NoSharedDelay) && (g.HoverItemDelayIdPreviousFrame != hover_delay_id))
44904490
g.HoverItemDelayTimer = 0.0f;
44914491
g.HoverItemDelayId = hover_delay_id;
@@ -9242,6 +9242,16 @@ ImGuiID ImGuiWindow::GetID(int n)
92429242
}
92439243

92449244
// This is only used in rare/specific situations to manufacture an ID out of nowhere.
9245+
// FIXME: Consider instead storing last non-zero ID + count of successive zero-ID, and combine those?
9246+
ImGuiID ImGuiWindow::GetIDFromPos(const ImVec2& p_abs)
9247+
{
9248+
ImGuiID seed = IDStack.back();
9249+
ImVec2 p_rel = ImGui::WindowPosAbsToRel(this, p_abs);
9250+
ImGuiID id = ImHashData(&p_rel, sizeof(p_rel), seed);
9251+
return id;
9252+
}
9253+
9254+
// "
92459255
ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
92469256
{
92479257
ImGuiID seed = IDStack.back();
@@ -12338,6 +12348,9 @@ void ImGui::ClosePopupToLevel(int remaining, bool restore_focus_to_window_under_
1233812348
ImGuiContext& g = *GImGui;
1233912349
IMGUI_DEBUG_LOG_POPUP("[popup] ClosePopupToLevel(%d), restore_under=%d\n", remaining, restore_focus_to_window_under_popup);
1234012350
IM_ASSERT(remaining >= 0 && remaining < g.OpenPopupStack.Size);
12351+
if (g.DebugLogFlags & ImGuiDebugLogFlags_EventPopup)
12352+
for (int n = remaining; n < g.OpenPopupStack.Size; n++)
12353+
IMGUI_DEBUG_LOG_POPUP("[popup] - Closing PopupID 0x%08X Window \"%s\"\n", g.OpenPopupStack[n].PopupId, g.OpenPopupStack[n].Window ? g.OpenPopupStack[n].Window->Name : NULL);
1234112354

1234212355
// Trim open popup stack
1234312356
ImGuiPopupData prev_popup = g.OpenPopupStack[remaining];
@@ -20939,7 +20952,7 @@ void ImGui::UpdateDebugToolFlashStyleColor()
2093920952
ImGuiContext& g = *GImGui;
2094020953
if (g.DebugFlashStyleColorTime <= 0.0f)
2094120954
return;
20942-
ColorConvertHSVtoRGB(cosf(g.DebugFlashStyleColorTime * 6.0f) * 0.5f + 0.5f, 0.5f, 0.5f, g.Style.Colors[g.DebugFlashStyleColorIdx].x, g.Style.Colors[g.DebugFlashStyleColorIdx].y, g.Style.Colors[g.DebugFlashStyleColorIdx].z);
20955+
ColorConvertHSVtoRGB(ImCos(g.DebugFlashStyleColorTime * 6.0f) * 0.5f + 0.5f, 0.5f, 0.5f, g.Style.Colors[g.DebugFlashStyleColorIdx].x, g.Style.Colors[g.DebugFlashStyleColorIdx].y, g.Style.Colors[g.DebugFlashStyleColorIdx].z);
2094320956
g.Style.Colors[g.DebugFlashStyleColorIdx].w = 1.0f;
2094420957
if ((g.DebugFlashStyleColorTime -= g.IO.DeltaTime) <= 0.0f)
2094520958
DebugFlashStyleColorStop();

imgui/imgui.h

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// dear imgui, v1.91.1 WIP
1+
// dear imgui, v1.91.1
22
// (headers)
33

44
// Help:
@@ -28,8 +28,8 @@
2828

2929
// Library Version
3030
// (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345')
31-
#define IMGUI_VERSION "1.91.1 WIP"
32-
#define IMGUI_VERSION_NUM 19104
31+
#define IMGUI_VERSION "1.91.1"
32+
#define IMGUI_VERSION_NUM 19110
3333
#define IMGUI_HAS_TABLE
3434
#define IMGUI_HAS_VIEWPORT // Viewport WIP branch
3535
#define IMGUI_HAS_DOCK // Docking WIP branch
@@ -307,7 +307,7 @@ struct ImVec2
307307
// add by Dicky
308308
struct ImMat4x4;
309309
// A Vec3, Matrix 3x3, Dot & Cross products, A Quaternion. Some helper functions, bare minimum
310-
struct ImVec3
310+
struct IMGUI_API ImVec3
311311
{
312312
float x, y, z;
313313
ImVec3() : x(0.0f), y(0.0f), z(0.0f) { }
@@ -321,7 +321,7 @@ struct ImVec3
321321
// add by Dicky end
322322

323323
// ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type]
324-
struct ImVec4
324+
struct IMGUI_API ImVec4
325325
{
326326
float x, y, z, w;
327327
constexpr ImVec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) { }
@@ -335,7 +335,7 @@ struct ImVec4
335335

336336
// add by Dicky
337337
// Matrix used to allow user to specify axis orientation
338-
struct ImMat3x3
338+
struct IMGUI_API ImMat3x3
339339
{
340340
float m[3][3];
341341
ImMat3x3()
@@ -363,7 +363,7 @@ struct ImMat3x3
363363
}
364364
};
365365

366-
struct ImMat4x4
366+
struct IMGUI_API ImMat4x4
367367
{
368368
union
369369
{
@@ -494,7 +494,7 @@ struct ImMat4x4
494494
}
495495
};
496496

497-
struct Vertex {
497+
struct IMGUI_API Vertex {
498498
// Attributes
499499
/** Vertex position */
500500
ImVec3 position {0.f, 0.f, 0.f};
@@ -674,7 +674,7 @@ namespace ImGui
674674
// - Use the ShowStyleEditor() function to interactively see/edit the colors.
675675
IMGUI_API ImFont* GetFont(); // get current font
676676
IMGUI_API float GetFontSize(); // get current font size (= height in pixels) of current font with current scale applied
677-
IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API
677+
IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV coordinate for a white pixel, useful to draw custom shapes via the ImDrawList API
678678
IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList
679679
IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList
680680
IMGUI_API ImU32 GetColorU32(ImU32 col, float alpha_mul = 1.0f); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList
@@ -2298,7 +2298,7 @@ enum ImGuiTableColumnFlags_
22982298
ImGuiTableColumnFlags_NoSort = 1 << 9, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table).
22992299
ImGuiTableColumnFlags_NoSortAscending = 1 << 10, // Disable ability to sort in the ascending direction.
23002300
ImGuiTableColumnFlags_NoSortDescending = 1 << 11, // Disable ability to sort in the descending direction.
2301-
ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, // TableHeadersRow() will not submit horizontal label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers.
2301+
ImGuiTableColumnFlags_NoHeaderLabel = 1 << 12, // TableHeadersRow() will submit an empty label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. You may append into this cell by calling TableSetColumnIndex() right after the TableHeadersRow() call.
23022302
ImGuiTableColumnFlags_NoHeaderWidth = 1 << 13, // Disable header text width contribution to automatic column width.
23032303
ImGuiTableColumnFlags_PreferSortAscending = 1 << 14, // Make the initial sort direction Ascending when first sorting on this column (default).
23042304
ImGuiTableColumnFlags_PreferSortDescending = 1 << 15, // Make the initial sort direction Descending when first sorting on this column.
@@ -3500,6 +3500,9 @@ struct ImDrawList
35003500
IMGUI_API void AddTriangleFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col);
35013501
IMGUI_API void AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments = 0, float thickness = 1.0f);
35023502
IMGUI_API void AddCircleFilled(const ImVec2& center, float radius, ImU32 col, int num_segments = 0);
3503+
// add by Dicky
3504+
IMGUI_API void AddCircleGradient(const ImVec2 center, float radius, ImU32 col_in, ImU32 col_out);
3505+
// add by Dicky end
35033506
IMGUI_API void AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness = 1.0f);
35043507
IMGUI_API void AddNgonFilled(const ImVec2& center, float radius, ImU32 col, int num_segments);
35053508
IMGUI_API void AddEllipse(const ImVec2& center, const ImVec2& radius, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f);
@@ -3894,7 +3897,7 @@ enum ImGuiViewportFlags_
38943897
ImGuiViewportFlags_None = 0,
38953898
ImGuiViewportFlags_IsPlatformWindow = 1 << 0, // Represent a Platform Window
38963899
ImGuiViewportFlags_IsPlatformMonitor = 1 << 1, // Represent a Platform Monitor (unused yet)
3897-
ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: Was created/managed by the user application? (rather than our backend)
3900+
ImGuiViewportFlags_OwnedByApp = 1 << 2, // Platform Window: Is created/managed by the user application? (rather than our backend)
38983901
ImGuiViewportFlags_NoDecoration = 1 << 3, // Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popups/tooltips)
38993902
ImGuiViewportFlags_NoTaskBarIcon = 1 << 4, // Platform Window: Disable platform task bar icon (generally set on popups/tooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set)
39003903
ImGuiViewportFlags_NoFocusOnAppearing = 1 << 5, // Platform Window: Don't take focus when created.

0 commit comments

Comments
 (0)