Archived

This topic is now archived and is closed to further replies.

pango99

OpenGL Can I use OpenGL without specifying a window

Recommended Posts

I want to write a video transition program using OpenGL,and there is no need a window to show the image rendered by OpenGL,so is it possible to initializing a OpenGL working environment without specifying a window?If it is,how to implement it?

Share this post


Link to post
Share on other sites
this is just a shot in the dark as i''m not sure 100% how you set these up, but try looking into a pbuffer as these are offscreen buffers.
I dunno if you need to have an active context to make one however.

Share this post


Link to post
Share on other sites
Take a look at the dwFlags fields in the PIXELFORMATDESCRIPTOR structure (more specifically, the PFD_DRAW_TO_BITMAP bit flag).

theNestruo

Syntax error in 2410
Ok

Share this post


Link to post
Share on other sites
Yes, you need a window if you want hardware accelerated OpenGL. You can create a window and then just not display it on the screen and just use pbuffers for all your rendering.

Share this post


Link to post
Share on other sites