Windowless OpenGL

后端 未结 5 1378
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-23 20:34

I would like to have a windowless OpenGL context (on both GNU/linux with Xorg and Windows). I\'m not going to render anything but only call functions like glGetString<

5条回答
  •  星月不相逢
    2020-12-23 21:24

    You need a window to host the context and you need a context to be able to do anything.

    Source

    If you don't want to display anything make the window invisible.

    If there was another way to do this, it would be documented somewhere and easily found as it's not an uncommon problem.

提交回复
热议问题