mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -14,12 +14,10 @@ struct Color
|
||||
constexpr explicit Color(uint32_t rgba) : m_rgba(rgba) {}
|
||||
constexpr Color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
|
||||
: Color(red << 24 | green << 16 | blue << 8 | alpha)
|
||||
{
|
||||
}
|
||||
{}
|
||||
constexpr Color(uint32_t rgb, uint8_t alpha)
|
||||
: Color(ExtractByte(rgb, 2), ExtractByte(rgb, 1), ExtractByte(rgb, 0), alpha)
|
||||
{
|
||||
}
|
||||
{}
|
||||
|
||||
constexpr uint8_t GetRed() const { return ExtractByte(m_rgba, 3); }
|
||||
constexpr uint8_t GetGreen() const { return ExtractByte(m_rgba, 2); }
|
||||
|
||||
Reference in New Issue
Block a user