| 81 | } |
| 82 | |
| 83 | void SetPixels(u32 width, u32 height, const PixelType* pixels) |
| 84 | { |
| 85 | m_width = width; |
| 86 | m_height = height; |
| 87 | m_pixels.resize(width * height); |
| 88 | std::memcpy(m_pixels.data(), pixels, width * height * sizeof(PixelType)); |
| 89 | } |
| 90 | |
| 91 | void SetPixels(u32 width, u32 height, std::vector<PixelType> pixels) |
| 92 | { |
no test coverage detected