Creating OpenGL context without window

后端 未结 1 557
野的像风
野的像风 2020-12-06 10:01

I\'m trying to figure out what is the simplest way to create a windowless OpenGL program for offscreen rendering.

Currently I use this, and it works fine so far: (er

相关标签:
1条回答
  • 2020-12-06 10:29

    The old method for purely windowless OpenGL is using a PBuffer. On Windows this requires the creation of a intermediate OpenGL context using a regular window to obtain the required extension function pointers. On X11/GLX it works without further ado.

    The modern way to implement off-screen rendering is using a regular, but hidden window with the usual OpenGL context and a FBO as render target.

    The bleeding edge, and yet not very well supported method (except on certain embedded devices) is using EGL for drawable creation.

    0 讨论(0)
提交回复
热议问题