David Megginson wrote:
 > For the record, if anyone wants to fix that, they are welcome too.
 > The 2D panel was my very first OpenGL project, written as a learning
 > exercise, and I do not deny that it is sloppy and poorly-integrated in
 > its current state.

Actually, for the 2D panel this behavior is just fine.  You *want* to
draw into screen space and erase whatever other matrix context might
be active.  It's only the virtual panel that needs this treatment.

What I'd really like to see is for the panel's draw() method to be
called with a pre-built matrix stack that transforms model/aircraft
coordinates (back/left/up, with the origin at the nose) into screen
space.  Then we just store corner locations for the panel and draw
them.  If in 2D mode, we can always push the unwanted matrices down
and rebuild them just like we do now.

Andy

-- 
Andrew J. Ross                NextBus 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

Reply via email to