Can I use OpenGL without specifying a window

Started by
2 comments, last by pango99 20 years, 10 months ago
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?
fsdf
Advertisement
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.
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
theNestruoSyntax error in 2410Ok
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.
---I write code.DelphiGL (http://delphigl.cfxweb.net)

This topic is closed to new replies.

Advertisement