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?
No. OpenGL requires a rendering context. Under Win32, a rendering context must be bound to a device context, which requires a window. I don’t really know, but I think it’s the same under Linux.
Actually, under Win32 you don’t need a window. You can create a memory device context and choose a pixel format that supports rendering to bitmap (PFD_DRAW_TO_BITMAP) and create an OpenGL rendering context from it. You can render fine directly to bitmap that way.
But only with software, and only MS reference implementation ( opengl 1.1 )
Originally posted by Mazy:
But only with software
Absolutely right That means for anything non-trivial, it’s likely to be sloooooww