D3D下glfw+imgui失效
bug情况和这个一模一样:https://github.com/ocornut/imgui/issues/5178
这个issue的作者使用一些方法绕开了,仓库地址:https://github.com/CybernetHacker14/Sentinel
则是混合glfw和native的Windows api
glfw与directx混合,还可以参考:https://discourse.glfw.org/t/how-do-you-use-glfw-with-directx/1415
总的来说有两种方案:
对于dx,使用原生的Windows api创建window,其他的图形api则使用glfw创建window
统一使用glfw创建window,对于dx想办法绕开问题
Last updated