IMGUI没有会员RenderPlatFormWindowsDefault错误
当我尝试构建旧代码时,我不记得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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该代码使用 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.