FastLED 3.9.15
Loading...
Searching...
No Matches

◆ reset()

template<typename T>
void fl::Grid< T >::reset ( uint32_t width,
uint32_t height )
inline

Definition at line 15 of file grid.h.

15 {
16 clear();
17 if (width != mWidth || height != mHeight) {
18 mWidth = width;
20 mData.resize(width * height);
21
22 }
24 width, height);
25 }
uint32_t height() const
Definition grid.h:57
void clear()
Definition grid.h:27
uint32_t mHeight
Definition grid.h:85
uint32_t mWidth
Definition grid.h:84
fl::MatrixSlice< T > mSlice
Definition grid.h:86
uint32_t width() const
Definition grid.h:56
fl::vector< T > mData
Definition grid.h:83
Definition grid.h:9

References clear(), height(), mData, mHeight, mSlice, mWidth, and width().

Referenced by Grid().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: