wgl

Minimal Windowless OpenGL Context Initialization

夙愿已清 提交于 2019-11-30 13:54:35
How can I initialize a windowless OpenGL context with the minimal amount of code? I've read here that you can use wglCreateContextAttribsARB to create windowless context, however it doesn't explain how? From the link: Creating a context without a window, for off-screen rendering. This may not actually work. That second sentence is important. From the WGL_ARB_create_context specification : 4) Should there be a way to make a context current without binding it to a window system drawable at the same time? RESOLVED: Yes, but only in OpenGL 3.0 and later. This results in a context with an invalid