diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-22 23:10:36 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-22 23:10:36 +0000 |
| commit | bc1f6a491532a470d001d0f5d945b5c1a4919ce9 (patch) | |
| tree | 19efe72b55ec568c494e294554ffaea8401d471e /Graphics/GraphicsEngine | |
| parent | Moved vulkan-1.lib windows library to windows subfloder to have consistent di... (diff) | |
| download | DiligentCore-bc1f6a491532a470d001d0f5d945b5c1a4919ce9.tar.gz DiligentCore-bc1f6a491532a470d001d0f5d945b5c1a4919ce9.zip | |
Added Rect::IsValid method
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/DeviceContext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index 46b48337..fef82b41 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -383,6 +383,11 @@ struct Rect {} Rect()noexcept{} + + bool IsValid() const + { + return right > left && bottom > top; + } }; |
