Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/vsg/app/View.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down
3 changes: 3 additions & 0 deletions src/vsg/app/WindowResizeHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Loading