PDA

View Full Version : Windowless OpenGL Rendering & GLX ?



awoland
07-28-2003, 07:25 PM
How to make widowless rendering with use GLX in Linux?

nrg
08-04-2003, 12:36 AM
Originally posted by awoland:
How to make widowless rendering with use GLX in Linux?

Try SDL (http://www.libsdl.org)

SDL_Init(SDL_INIT_VIDEO);
SDL_Surface *p_surf = SDL_SetVideoMode(640, 480, 32, SDL_OPENGL | SDL_FULLSCREEN);

plus error checking of course.. and you have fullscreen window with opengl ready to go..

awoland
08-06-2003, 02:12 AM
Question about creation GLX context on a desktop layer (for example desktop GNOME)

jide
08-12-2003, 02:44 AM
Originally posted by awoland:
Question about creation GLX context on a desktop layer (for example desktop GNOME)

Gnome or KDE or ... doesn't matter for what you want.

There is X option to display window without any decoration at all, so this may be what you tell windowless rendering as you don't speak about fullscreen.

However, a window is needed in all cases, even if you don't want title bar, or anything around your rendering.

Take a look at XCreateWindow and its options (available on the net, and on almost all Linux distribs).

hope this helps