> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Dave Culp > Sent: Sunday, October 30, 2005 7:55 AM > To: FlightGear developers discussions > Subject: Re: [Flightgear-devel] wish list for next release > > > > Ow, that I'm not sure of. > > I guess it would be better to backport this code to support 2D panels > > also then. > > > The only thing lacking in the 2D code now is the ability rotate, translate, > and *then* crop a texture. Maybe it would be required that the texture be > drawn to a context in memory, rotated, translated, and then cropped and drawn > to the screen? > > It's unlikely that I'll be learning OpenGL in the next few years, so it would > be *really* great if someone could look into this issue. This would finally > make the 2D panel code complete.
I am not really up to speed with the Panels but ... FG_SRC / cockpit / panel.hxx /** * A transformation for a layer. */ class FGPanelTransformation : public SGConditional { public: enum Type { XSHIFT, YSHIFT, ROTATION }; FGPanelTransformation (); virtual ~FGPanelTransformation (); Type type; const SGPropertyNode * node; float min; float max; bool has_mod; float mod; float factor; float offset; SGInterpTable * table; }; seems to have what you need Maybe it just needs to be exposed better Norman _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d