Skip to content

Commit 4e9173a

Browse files
committed
Move over onResize to IGraphicalApplicationFramework
1 parent 23cdaa4 commit 4e9173a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/nbl/system/IApplicationFramework.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ class NBL_API IApplicationFramework : public core::IReferenceCounted
5252
return onAppTerminated_impl();
5353
}
5454

55-
virtual void onResize(uint32_t w, uint32_t h) {}
56-
5755
virtual void workLoopBody() = 0;
5856
virtual bool keepRunning() = 0;
5957
std::vector<std::string> argv;

include/nbl/ui/IGraphicalApplicationFramework.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class IGraphicalApplicationFramework
1515
virtual video::IAPIConnection* getAPIConnection() = 0;
1616
virtual video::ILogicalDevice* getLogicalDevice() = 0;
1717
virtual video::IGPURenderpass* getRenderpass() = 0;
18-
18+
1919
virtual void setSwapchain(core::smart_refctd_ptr<video::ISwapchain>&& s) = 0;
2020
virtual void setWindow(core::smart_refctd_ptr<nbl::ui::IWindow>&& window) = 0;
2121
virtual void setSurface(core::smart_refctd_ptr<video::ISurface>&& s) = 0;
@@ -25,6 +25,8 @@ class IGraphicalApplicationFramework
2525
virtual nbl::asset::E_FORMAT getDepthFormat() = 0;
2626

2727
virtual void recreateSurface() = 0;
28+
29+
virtual void onResize(uint32_t w, uint32_t h) = 0;
2830
};
2931

3032
}

0 commit comments

Comments
 (0)