Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -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); }