| 52 | } |
| 53 | |
| 54 | void TestBitmap::setPixels(const std::initializer_list<Color>& pixels) { |
| 55 | SC_ASSERT(pixels.size() == static_cast<size_t>(_width) * _height); |
| 56 | std::memcpy(_pixels.data(), pixels.begin(), pixels.size() * sizeof(Color)); |
| 57 | } |
| 58 | |
| 59 | bool TestBitmap::operator==(const TestBitmap& other) const { |
| 60 | if (_width != other._width || _height != other._height) { |