View Full Version : Creating JPG without a window

06-25-2008, 04:31 AM

How to create JPG image of OpenGL drawing without a window?
(My application must be real-time 3D image generator with no GUI)

Is there any tutorial or sample source code available on this subject?

Thanks in advance.

06-25-2008, 05:00 AM
Use a FBO (framebuffer object) to draw an offscreen image, read it back and encode it as a jpeg. You will have t create a window anyway if you want accelerated rendering, but the window may stay hidden all the time.