On Mon, Aug 3, 2009 at 7:19 PM, Jie Liu<[email protected]> wrote:
> Another question, do you have any idea on writing a full screen window in
> Linux with GLUT?
>
> I mean, the window without boaders and the title bar, the glutFullScreen()
> in linux will not remove these decorations automatically, while in Windows,
> the client of a window can cover the whole screen
>
> I do not have too much idea about linux system programming, do I have to
> utilize XLib or anything like that? How does it work in conjunction with
> GLUT and OpenSG?
This is slightly OT. You have a couple of choices :
1. Bind a key to maximize your current window. Google search gave me
http://infinity-unbound.blogspot.com/2008/01/how-to-make-your-window-full-screen-in_15.html
2. Run X without a window manager. You'd want to do this if you are
running your application on multiple nodes. When the app runs, the
reshape callback will not be called. Use glutGet to get the window &
height and move the resize code into the display func. Plus enable the
idle callback to refresh the display in a loop. This is more of a
hack, but it works.
If you're running a cluster aware application, have a look at
12ClusterServerX.cpp as well.
Good luck
-- Shree
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users