FGPanel* getPanel() { return _panel; }
- virtual void drawImplementation(osg::State& state) const;
+ virtual void drawImplementation(osg::RenderInfo& renderInfo) const
+ { drawImplementation(*renderInfo.getState()); }
+ void drawImplementation(osg::State& state) const;
virtual osg::BoundingBox computeBound() const;
private:
// The matrix transformation state that was active the last time
// we were rendered. Used by the mouse code to compute
// intersections.
- osg::Matrix _lastModelview;
- osg::Matrix _lastProjection;
- int _lastViewport[4];
+ mutable osg::Matrix _lastModelview;
+ mutable osg::Matrix _lastProjection;
+ mutable double _lastViewport[4];
};