Added forward declaration of callbacks to headers to avoid scoping issues of classes with same names.

This commit is contained in:
Robert Osfield
2009-01-23 15:50:05 +00:00
parent 7b598c5701
commit e0c279bf3d
4 changed files with 10 additions and 3 deletions

View File

@@ -514,7 +514,7 @@ void ShadowMap::cleanSceneGraph()
// Callback simply turns shadow compare mode off via GL while rendering hud and
// restores it afterwards.
////////////////////////////////////////////////////////////////////////////////
class DrawableDrawWithDepthShadowComparisonOffCallback:
class ShadowMap::DrawableDrawWithDepthShadowComparisonOffCallback:
public osg::Drawable::DrawCallback
{
public:
@@ -549,6 +549,7 @@ public:
osg::ref_ptr< osg::Texture2D > _texture;
unsigned _stage;
};
////////////////////////////////////////////////////////////////////////////////
osg::ref_ptr<osg::Camera> ShadowMap::makeDebugHUD()
{