Can you create OpenGL context without opening a window?

后端 未结 3 882
生来不讨喜
生来不讨喜 2020-12-05 04:20

Occassionally I hit places where I\'d want to get an OpenGL framebuffer object, but where I\'m not interested about opening a window of any kind.

Is it possible to c

3条回答
  •  半阙折子戏
    2020-12-05 05:25

    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 ;)

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

提交回复
热议问题