Can I use OpenGL without specifying a window

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?

You always need a HWND (and from that, a HDC) to use OpenGL.

However, you don’t have to display the window. You can create the window, get a HDC from it, initialize OpenGL, and then minimize the window.

To make this work, you must render, not to the window’s back buffer, but to a pbuffer you create with the appropriate ARB extension.

Originally posted by Korval:
[b]You always need a HWND (and from that, a HDC) to use OpenGL.

However, you don’t have to display the window. You can create the window, get a HDC from it, initialize OpenGL, and then minimize the window.

To make this work, you must render, not to the window’s back buffer, but to a pbuffer you create with the appropriate ARB extension.[/b]

Minimize? Simply don’t show and that’s all.