How does Blender do fullscreen in XWin?
Posted: Sun Sep 18, 2005 11:37 pm
Hi
I will first ask my question and then do the explanation (which is meant to clarify the question to any good soul that is trully willing to give an answer
):
Here goes the question:
How does blender take over the entire screen of my X Windows (GNOME, with Metacity WM)? I'm quite sure it must be in this file: GHOST_SystemX11.cpp, but I'm too stupid to figure out how exactly do you manage/code it...
Here goes the explanation:
The fact is I'm trying to create a fullscreen application (game) in linux, and I want to fully utilize the OpenGL library.
I've tried GAME MODE with FreeGlut, but it merely maximizes the window - window's borders are still visible, and so are the GNOME panels (task bars)... Obviously freeglut won't help me much, and just so you know: I really need keyboard, mouse and optionally even joystick input
And I want to give the user the option to switch between other application (running in X).
You must know that I'm asking for pointers - e.g.: which library to link to and where to start searching (API Docs) - I'm quite experienced with C/C++ and such, but I don't have much knowledge in X Windows API.
Oh, and this: I'm really new with linux, but I know how to use man pages (and google), and I wouldn't be asking here if I had already found an useful answer
I would be really grateful to anyone giving me any pointers!
Thanks in advance
Matt
I will first ask my question and then do the explanation (which is meant to clarify the question to any good soul that is trully willing to give an answer

Here goes the question:
How does blender take over the entire screen of my X Windows (GNOME, with Metacity WM)? I'm quite sure it must be in this file: GHOST_SystemX11.cpp, but I'm too stupid to figure out how exactly do you manage/code it...
Here goes the explanation:
The fact is I'm trying to create a fullscreen application (game) in linux, and I want to fully utilize the OpenGL library.
I've tried GAME MODE with FreeGlut, but it merely maximizes the window - window's borders are still visible, and so are the GNOME panels (task bars)... Obviously freeglut won't help me much, and just so you know: I really need keyboard, mouse and optionally even joystick input

You must know that I'm asking for pointers - e.g.: which library to link to and where to start searching (API Docs) - I'm quite experienced with C/C++ and such, but I don't have much knowledge in X Windows API.
Oh, and this: I'm really new with linux, but I know how to use man pages (and google), and I wouldn't be asking here if I had already found an useful answer

I would be really grateful to anyone giving me any pointers!
Thanks in advance
Matt