diff --git a/include/vsg/app/View.h b/include/vsg/app/View.h index 5f31e37b3a..6d018bfb79 100644 --- a/include/vsg/app/View.h +++ b/include/vsg/app/View.h @@ -86,6 +86,9 @@ namespace vsg /// override states for customization of graphics pipelines for this view GraphicsPipelineStates overridePipelineStates; + // abstract class to notify that the window is resized + virtual void resize() {}; + protected: virtual ~View(); }; diff --git a/src/vsg/app/WindowResizeHandler.cpp b/src/vsg/app/WindowResizeHandler.cpp index b28f94371f..c42a3dab5a 100644 --- a/src/vsg/app/WindowResizeHandler.cpp +++ b/src/vsg/app/WindowResizeHandler.cpp @@ -183,4 +183,7 @@ void WindowResizeHandler::apply(vsg::View& view) view.traverse(*this); context->defaultPipelineStates.pop_back(); + + // Notify the view about the resize + view.resize(); }