| 18 | Grid(u32 width, u32 height) { reset(width, height); } |
| 19 | |
| 20 | void reset(u32 width, u32 height) { |
| 21 | clear(); |
| 22 | if (width != mWidth || height != mHeight) { |
| 23 | mWidth = width; |
| 24 | mHeight = height; |
| 25 | mData.resize(width * height); |
| 26 | |
| 27 | } |
| 28 | mSlice = fl::MatrixSlice<T>(mData.data(), width, height, 0, 0, |
| 29 | width, height); |
| 30 | } |
| 31 | |
| 32 | void clear() { |
| 33 | for (u32 i = 0; i < mWidth * mHeight; ++i) { |
no test coverage detected