Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的愿望是从OpenGLhDestWindowOverride的调用中模拟 DirectX 的参数。Direct3DDevice::Present()
hDestWindowOverride
Direct3DDevice::Present()
或者换一种说法,有没有更优雅的解决方案可以快速切换窗口而无需执行GetDC(), SetPixelFormat(),wglMakeCurrent()渲染所有内容,然后还原?
GetDC()
SetPixelFormat()
wglMakeCurrent()
目的是制作一个通用的仿真层,重新构造代码以便不需要此参数将无助于解决问题。