Seperated out the scene->requiresRedraw() method into a osgViewer::Viewer::requiresRedraw() method to make the functionality clearer and easier to override.

This commit is contained in:
Robert Osfield
2016-07-05 11:54:31 +01:00
parent 16d497ef80
commit dce1473a53
4 changed files with 16 additions and 5 deletions

View File

@@ -308,7 +308,10 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
/** Return true if there are pending updates to the scene graph that require an update. */
virtual bool requiresUpdateSceneGraph() const;
public:
/** Return true if there are graphics operations that require a draw of the grpahics context. */
virtual bool requiresRedraw() const;
public:
osg::Texture* createDistortionTexture(int width, int height);
osg::Camera* assignRenderToTextureCamera(osg::GraphicsContext* gc, int width, int height, osg::Texture* texture);