IMGUI没有会员RenderPlatFormWindowsDefault错误

发布于 2025-02-12 05:37:54 字数 637 浏览 1 评论 0原文

当我尝试构建旧代码时,我不记得iMgui是什么版本,但我会遇到此错误。我搜索了整个互联网,但找不到。

ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;
if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
        {
            ImGui::UpdatePlatformWindows();
            ImGui::RenderPlatformWindowsDefault();
        } 

Visual Studio错误:

Error (active) E0020 identifier "ImGuiConfigFlags_ViewportsEnable" is undefined

Error (active) E0135 namespace "ImGui" has no member "UpdatePlatformWindows"

Error (active) E0135 namespace "ImGui" has no member "RenderPlatformWindowsDefault"

IMGUI版本:V1.88

When i try to build my old code i dont remember what version is imgui but i'm getting this error. i searched whole internet but i can't find nothing.

ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_ViewportsEnable;
if (io.ConfigFlags & ImGuiConfigFlags_ViewportsEnable)
        {
            ImGui::UpdatePlatformWindows();
            ImGui::RenderPlatformWindowsDefault();
        } 

Visual studio errors:

Error (active) E0020 identifier "ImGuiConfigFlags_ViewportsEnable" is undefined

Error (active) E0135 namespace "ImGui" has no member "UpdatePlatformWindows"

Error (active) E0135 namespace "ImGui" has no member "RenderPlatformWindowsDefault"

Imgui version : v1.88

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆夏时光 2025-02-19 05:37:54

该代码使用 docking barking of imgui

您可以切换到对接分支,或者如果您不需要的话,则可以删除那些代码行。

That code uses the docking branch of imgui, and you're probably using the master branch.

You could either switch to the docking branch, or remove those lines of code if you don't need it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文