| 98 | } |
| 99 | |
| 100 | uint32_t Color::getPackedRGB() const |
| 101 | { |
| 102 | // clang-format off |
| 103 | return (static_cast<uint32_t>(std::lround(r * 255.0F)) << 24 | |
| 104 | static_cast<uint32_t>(std::lround(g * 255.0F)) << 16 | |
| 105 | static_cast<uint32_t>(std::lround(b * 255.0F)) << 8); |
| 106 | // clang-format on |
| 107 | } |
| 108 | |
| 109 | uint32_t Color::getPackedARGB() const |
| 110 | { |
no outgoing calls
no test coverage detected