-\f
-////////////////////////////////////////////////////////////////////////
-// A moving window on a texture.
-//
-// This layer automatically recrops a cropped texture based on
-// property values, creating a moving window over the texture.
-////////////////////////////////////////////////////////////////////////
-
-class FGWindowLayer : public FGTexturedLayer
-{
-public:
- FGWindowLayer (int w = -1, int h = -1);
- FGWindowLayer (const FGCroppedTexture &texture, int w = -1, int h = -1);
- virtual ~FGWindowLayer ();
-
- virtual void draw ();
-
- virtual const SGValue * getXValue () const { return _xValue; }
- virtual void setXValue (const SGValue * value) { _xValue = value; }
- virtual const SGValue * getYValue () const { return _yValue; }
- virtual void setYValue (const SGValue * value) { _yValue = value; }
-
-private:
- const SGValue * _xValue;
- const SGValue * _yValue;
-};
-
-