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

◆ rawData()

CRGB * fl::Corkscrew::rawData ( )

Definition at line 219 of file corkscrew.cpp.

219 {
220 // Use variant storage if available, otherwise fall back to input surface
221 if (!mPixelStorage.empty()) {
222 if (mPixelStorage.template is<fl::span<CRGB>>()) {
223 return mPixelStorage.template get<fl::span<CRGB>>().data();
224 } else if (mPixelStorage.template is<fl::vector<CRGB, fl::allocator_psram<CRGB>>>()) {
226 }
227 }
228
229 // Fall back to input surface data
231 return surface->data();
232}
fl::shared_ptr< fl::Grid< CRGB > > & getOrCreateInputSurface()
fl::Grid< CRGB > & surface()
fl::span< CRGB > data()
PixelStorage mPixelStorage
Definition corkscrew.h:239
Slice< T > span
Definition span.h:8
pair_element< I, T1, T2 >::type & get(pair< T1, T2 > &p) noexcept
Definition pair.h:113
HeapVector< T, Allocator > vector
Definition vector.h:1214

References data(), fl::get(), getOrCreateInputSurface(), mPixelStorage, and surface().

Referenced by draw().

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