Merge branch 'Withaust-resizedelegate'
This commit is contained in:
@@ -405,6 +405,7 @@ void WindowBase::OnResize(int32 width, int32 height)
|
||||
_swapChain->Resize(width, height);
|
||||
if (RenderTask)
|
||||
RenderTask->Resize(width, height);
|
||||
Resized({ static_cast<float>(width), static_cast<float>(height) });
|
||||
INVOKE_EVENT_PARAMS_2(OnResize, &width, &height);
|
||||
}
|
||||
|
||||
|
||||
@@ -315,6 +315,11 @@ public:
|
||||
/// </summary>
|
||||
Action Closed;
|
||||
|
||||
/// <summary>
|
||||
/// Event fired when window gets resized.
|
||||
/// </summary>
|
||||
Delegate<Float2> Resized;
|
||||
|
||||
/// <summary>
|
||||
/// Event fired when window gets focused.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user