SpiecsEngine
 
Loading...
Searching...
No Matches

◆ QueryIsResizedThisFrame()

void Spices::ImguiSlate::QueryIsResizedThisFrame ( const ImVec2 & thisFrameSize)
protectedvirtualinherited

Query whether viewport is resized this frame.

Parameters
[in]thisFrameSizeThe size of Viewport this Frame.

Reimplemented in Spices::ImguiViewport.

Definition at line 75 of file ImguiUtils.cpp.

76 {
78
79 if (m_PanelSize.x != thisFrameSize.x || m_PanelSize.y != thisFrameSize.y)
80 {
81 m_IsResized = true;
82 }
83 else
84 {
85 m_IsResized = false;
86 }
87
88 m_PanelSize = thisFrameSize;
89 }
#define SPICES_PROFILE_ZONE
ImVec2 m_PanelSize
This slate's size.
Definition ImguiUtils.h:151
bool m_IsResized
Boolean of whether resized this frame.
Definition ImguiUtils.h:186

References Spices::ImguiSlate::m_IsResized.