How does Blender do fullscreen in XWin?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Sun Sep 18, 2005 10:43 pm

How does Blender do fullscreen in XWin?

Post by Squale » Sun Sep 18, 2005 11:37 pm


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 :D

I would be really grateful to anyone giving me any pointers!

Thanks in advance


Posts: 289
Joined: Wed Oct 16, 2002 2:38 am

Post by z3r0_d » Mon Sep 19, 2005 12:25 am

I'll tell you one thing

blender isn't going full screen by taking over the display device [like a game would], it is creating a borderless window which covers everything

but beyond that I can't be of much help...

or not

line 133-175 or so is pretty clear what it is doing. If in fullscreen mode the window decorations are removed...

Posts: 0
Joined: Sun Sep 18, 2005 10:43 pm

Post by Squale » Mon Sep 19, 2005 9:19 am

Oh man! :shock: That was really lame of me... I must be blind or something! :cry:

Well then, thanks anyway...

Posts: 0
Joined: Sun Sep 18, 2005 10:43 pm

Post by Squale » Mon Sep 19, 2005 2:00 pm

Found an alternative:

SDL ( - it does the job right.


Post Reply