且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

您可以在不打开窗口的情况下创建 OpenGL 上下文吗?

更新时间:2023-09-09 23:25:46

是的!您可以使用桌面窗口作为传递给 OpenGL 的窗口-只要您不尝试在其上显示任何内容;)

Yes! you can use the desktop window as the window passed to OpenGL- as long as you don't try to display anything on it ;)

只需调用 GetDesktopWindow 并传递结果作为创建新 OpenGL 窗口时的参数.

Just Call GetDesktopWindow and pass the result as an argument when creating new OpenGL window.