How to create an offscreen opengl context?

Hello SDL community;

In my Qt based app:


I create an opengl window of the size 1x1x32 to create a dummy opengl context (to retrieve opengl support information). What I really want to do is create this context offscreen and invisible. So two questions:

  1. How can I make a context offscreen?
  2. If not can I make this dummy window invisible?

Thanks.

Or maybe better to create a hidden SDL/OPENGL window? How can I do this?

I don’t know how to do that using SDL, but this can be done using
pbuffers (google it).

Don’t know if SDL uses it.

MartOn 17/02/2011 11:45 AM, barbarbaron wrote:

Hello SDL community;

In my Qt based app:
http://sourceforge.net/projects/gl-status/
I create an opengl window of the size 1x1x32 to create a dummy opengl
context (to retrieve opengl support information). What I really want
to do is create this context offscreen and invisible. So two questions:

  1. How can I make a context offscreen?
  2. If not can I make this dummy window invisible?

Thanks.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org