diff options
Diffstat (limited to 'src/Geometry.h')
-rw-r--r-- | src/Geometry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Geometry.h b/src/Geometry.h index e9cb5a6c8..01af92969 100644 --- a/src/Geometry.h +++ b/src/Geometry.h @@ -187,6 +187,10 @@ public: return ColourAlpha(co | (0xffu << 24)); } + constexpr int AsInteger() const noexcept { + return co; + } + constexpr int OpaqueRGB() const noexcept { return co & 0xffffff; } |