rendering context with no window?

Started by
5 comments, last by _the_phantom_ 18 years, 11 months ago
Is it possible to get a rendering context without an application instance or window handle? Can you do that without using an extensions? Thanks for any info.
Advertisement
no, I dont think this is possible... this is probably a long shot
but take a look at PBuffers I cant quite remember whether or not they required
an exisiting GL context (AFAIK they are windowing extensions... so they might
not..)

Cheers
-Danu
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
What exactly would you need this for anyway? maybe we can help with your
approach??
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
I guess I should elaborate on what I am trying to do. I am working on processing live video, some of it is done with OpenGL. I would like to put all of this code into a DLL. This mean that I would have no window. Without a window, is there any way to get a Device Context to use to create a rendering context?
well.. thats an odd situation, but here's my 2c

create a window using CreateWindow, make it very very small and
only request a basic OpenGL context, create it with the SW_HIDE flag (ie, don't
make the window visible) now using that windows rendering context create
a PBuffer with your required dimensions/attributes and use that for rendering
or processing or whatever. that should work.

PS. there are some PBuffer implementations floating around the net, so you most
likely won't have to re-implement a wrapper.

Cheers
-Danu
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website
Odd indeed.

Thanks for the input - I will try something like what you have suggested.
Just to clear things up, you cant issue any OpenGL commands without a valid context, which means you need a window to create that context in.

The ARB is working on a method which doesnt require a window however, but I wouldnt expect it, or any implimentations, any time soon.

This topic is closed to new replies.

Advertisement