Re: [Flightgear-devel] Creating a sub window
Christian wrote: > In that case you can have a much simpler solution. Look at PLIBs PUI and > create a new (permanet) PUI window that outputs the text. Should be > quite easy. Thanks Christian! Pui worked great! Dawn ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Creating a sub window
Dawn Ellis wrote: > > > Andy wrote: > > > Platform? FlightGear's main window is an OpenGL rendering context. > > I'd be surprised if there was any portable way of getting an OS > > subwindow. You'd be better off working with the PUI library inside > > the context instead. > > > We are running on a Windows 2000 machine, using the cygwin environment. > I've used the glutCreateSubWindow function, and I do get two windows, but FG > seems to be overriding the display callback for the subwindow. If you want an additonal window from the OS to display OpenGL you also need a new OpenGL context. Have a look at PLIB as that's responsible for that in our case. Maybe you should also have a look at PPE (prettypoly.sf.net) as it uses PLIB and creates multiple windows. > We are using Jon's shuttle model for a landing simulation that we are > developing for the Challenger Center at the school. We are using a modified > HUD display with special audio to simulate mission control, and the sub > window will be used to display text. In that case you can have a much simpler solution. Look at PLIBs PUI and create a new (permanet) PUI window that outputs the text. Should be quite easy. CU, Christian -- The idea is to die young as late as possible.-- Ashley Montague Whoever that is/was; (c) by Douglas Adams would have been better... ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Creating a sub window
> Andy wrote: > Platform? FlightGear's main window is an OpenGL rendering context. > I'd be surprised if there was any portable way of getting an OS > subwindow. You'd be better off working with the PUI library inside > the context instead. > We are running on a Windows 2000 machine, using the cygwin environment. I've used the glutCreateSubWindow function, and I do get two windows, but FG seems to be overriding the display callback for the subwindow. We are using Jon's shuttle model for a landing simulation that we are developing for the Challenger Center at the school. We are using a modified HUD display with special audio to simulate mission control, and the sub window will be used to display text. Dawn ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Creating a sub window
Dawn Ellis wrote: > Has anyone ever tried incorporating a sub window into flightgear? If > so, is there some sort of trick? > > I have a sub window running with flightgear, but it appears that > something in FG is overriding what happens inside the sub window. Platform? FlightGear's main window is an OpenGL rendering context. I'd be surprised if there was any portable way of getting an OS subwindow. You'd be better off working with the PUI library inside the context instead. At least in X11, though, this "should" work, barring driver bugs. With the current NVidia drivers, I can verify that a foreground window (an xterm, whatever) properly obscures and clips the fgfs window. Andy -- Andrew J. RossNextBus Information Systems Senior Software Engineer Emeryville, CA [EMAIL PROTECTED] http://www.nextbus.com "Men go crazy in conflagrations. They only get better one by one." - Sting (misquoted) ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel