Removed deprecated drawImplementation(State&) method from Drawable and Drawable::DrawCallback
This commit is contained in:
@@ -79,7 +79,7 @@ float ImpostorSprite::calcPixelError(const osg::Matrix& MVPW) const
|
||||
|
||||
return sqrtf(max_error_sqrd);
|
||||
}
|
||||
void ImpostorSprite::drawImplementation(osg::State&) const
|
||||
void ImpostorSprite::drawImplementation(osg::RenderInfo&) const
|
||||
{
|
||||
// when the tex env is set to REPLACE, and the
|
||||
// texture is set up correctly the color has no effect.
|
||||
|
||||
@@ -82,8 +82,9 @@ void LightPointDrawable::reset()
|
||||
}
|
||||
|
||||
|
||||
void LightPointDrawable::drawImplementation(osg::State& state) const
|
||||
void LightPointDrawable::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
{
|
||||
osg::State& state = *renderInfo.getState();
|
||||
|
||||
state.applyMode(GL_POINT_SMOOTH,true);
|
||||
state.applyMode(GL_BLEND,true);
|
||||
|
||||
@@ -80,7 +80,7 @@ class OSGSIM_EXPORT LightPointDrawable : public osg::Drawable
|
||||
}
|
||||
|
||||
/** draw LightPoints. */
|
||||
virtual void drawImplementation(osg::State& state) const;
|
||||
virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
|
||||
|
||||
void setSimulationTime(double time)
|
||||
|
||||
@@ -28,12 +28,13 @@ LightPointSpriteDrawable::LightPointSpriteDrawable(const LightPointSpriteDrawabl
|
||||
{
|
||||
}
|
||||
|
||||
void LightPointSpriteDrawable::drawImplementation(osg::State& state) const
|
||||
void LightPointSpriteDrawable::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
{
|
||||
osg::State& state = *renderInfo.getState();
|
||||
|
||||
if (!state.getModeValidity(GL_POINT_SPRITE_ARB))
|
||||
{
|
||||
LightPointDrawable::drawImplementation(state);
|
||||
LightPointDrawable::drawImplementation(renderInfo);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class OSGSIM_EXPORT LightPointSpriteDrawable : public osgSim::LightPointDrawable
|
||||
|
||||
|
||||
/** draw LightPoints. */
|
||||
virtual void drawImplementation(osg::State& state) const;
|
||||
virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
META_Object(osgSim,Surface)
|
||||
|
||||
void drawImplementation(osg::State& state) const;
|
||||
void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
|
||||
virtual osg::BoundingBox computeBound() const;
|
||||
|
||||
@@ -64,9 +64,9 @@ private:
|
||||
SphereSegment* _ss;
|
||||
};
|
||||
|
||||
void SphereSegment::Surface::drawImplementation(osg::State& state) const
|
||||
void SphereSegment::Surface::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
{
|
||||
_ss->Surface_drawImplementation(state);
|
||||
_ss->Surface_drawImplementation(*renderInfo.getState());
|
||||
}
|
||||
|
||||
osg:: BoundingBox SphereSegment::Surface::computeBound() const
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
|
||||
META_Object(osgSim,EdgeLine)
|
||||
|
||||
void drawImplementation(osg::State& state) const;
|
||||
void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -121,9 +121,9 @@ private:
|
||||
SphereSegment* _ss;
|
||||
};
|
||||
|
||||
void SphereSegment::EdgeLine::drawImplementation(osg::State& state) const
|
||||
void SphereSegment::EdgeLine::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
{
|
||||
_ss->EdgeLine_drawImplementation(state);
|
||||
_ss->EdgeLine_drawImplementation(*renderInfo.getState());
|
||||
}
|
||||
|
||||
osg::BoundingBox SphereSegment::EdgeLine::computeBound() const
|
||||
@@ -159,7 +159,7 @@ public:
|
||||
|
||||
META_Object(osgSim,Side)
|
||||
|
||||
void drawImplementation(osg::State& state) const;
|
||||
void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -172,9 +172,9 @@ private:
|
||||
};
|
||||
|
||||
|
||||
void SphereSegment::Side::drawImplementation(osg::State& state) const
|
||||
void SphereSegment::Side::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
{
|
||||
_ss->Side_drawImplementation(state, _planeOrientation, _BoundaryAngle);
|
||||
_ss->Side_drawImplementation(*renderInfo.getState(), _planeOrientation, _BoundaryAngle);
|
||||
}
|
||||
|
||||
osg::BoundingBox SphereSegment::Side::computeBound() const
|
||||
@@ -210,7 +210,7 @@ public:
|
||||
|
||||
META_Object(osgSim,Spoke)
|
||||
|
||||
void drawImplementation(osg::State& state) const;
|
||||
void drawImplementation(osg::RenderInfo& renderInfo) const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -229,9 +229,9 @@ private:
|
||||
SphereSegment::BoundaryAngle _azAngle, _elevAngle;
|
||||
};
|
||||
|
||||
void SphereSegment::Spoke::drawImplementation(osg::State& state) const
|
||||
void SphereSegment::Spoke::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
{
|
||||
_ss->Spoke_drawImplementation(state, _azAngle, _elevAngle);
|
||||
_ss->Spoke_drawImplementation(*renderInfo.getState(), _azAngle, _elevAngle);
|
||||
}
|
||||
|
||||
osg::BoundingBox SphereSegment::Spoke::computeBound() const
|
||||
|
||||
Reference in New Issue
Block a user