stateSet->setMode(GL_FOG, osg::StateAttribute::OFF);
stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
}
- virtual void drawImplementation(osg::State& state) const
+ virtual void drawImplementation(osg::RenderInfo& renderInfo) const
+ { drawImplementation(*renderInfo.getState()); }
+ void drawImplementation(osg::State& state) const
{
state.pushStateSet(getStateSet());
state.apply();
stateSet->setTextureAttribute(0, new osg::TexEnv(osg::TexEnv::MODULATE));
}
- virtual void drawImplementation(osg::State& state) const
+ virtual void drawImplementation(osg::RenderInfo& renderInfo) const
+ { drawImplementation(*renderInfo.getState()); }
+ void drawImplementation(osg::State& state) const
{
state.pushStateSet(getStateSet());
state.apply();
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: