scissor rect

This commit is contained in:
ThorsDev
2025-09-22 17:48:21 +02:00
parent bdcb68619a
commit c5feaaf2d9
5 changed files with 172 additions and 8 deletions

View File

@@ -99,6 +99,11 @@ namespace UI
void AddFlag(DWORD flag) { SET_BIT(m_dwFlag, flag); }
void RemoveFlag(DWORD flag) { REMOVE_BIT(m_dwFlag, flag); }
bool IsFlag(DWORD flag) { return (m_dwFlag & flag) ? true : false; }
void EnableScissorRect();
void DisableScissorRect();
bool IsScissorRectEnabled() const;
/////////////////////////////////////
virtual void OnRender();
@@ -173,6 +178,7 @@ namespace UI
bool m_bMovable;
bool m_bShow;
bool m_bEnableScissorRect;
DWORD m_dwFlag;