nythrix's picture

GraphicsContext without Window

Is it possible to have a gl context without a window? I need to render offscreen and then read back the image for further processing.
I tried playing with the GraphicsContext's constructor but no luck so far.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

One solution is to create GLControl but not attach it to a Form. Another is to create a GameWindow and set it's visible property to false.

Note that the framebuffer contents of an invisible window are undefined, so you'll have to use a FBO to get any meaningful results.

nythrix's picture

Ok thanks.