Windowless OpenGL Rendering & GLX ?

How to make widowless rendering with use GLX in Linux?

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…

Question about creation GLX context on a desktop layer (for example desktop GNOME)

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

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.