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

◆ hexwave_init()

void fl::third_party::hexwave::hexwave_init ( int32_t width,
int32_t oversample,
float * user_buffer )

Initialize the hexwave library (DEPRECATED - use hexwave_engine_create)

Parameters
widthSize of BLEP, from 4..64, larger is slower & more memory but less aliasing
oversample2+, number of subsample positions, larger uses more memory but less noise
user_bufferOptional, if provided the library will perform no allocations.

Definition at line 450 of file stb_hexwave.cpp.hpp.

451{
452 if (sGlobalEngine != nullptr) {
454 }
455 sGlobalEngine = hexwave_engine_create(width, oversample, user_buffer);
456}
void hexwave_engine_destroy(HexWaveEngine *engine) FL_NOEXCEPT
Destroy a HexWaveEngine and free its resources.
static HexWaveEngine * sGlobalEngine
HexWaveEngine * hexwave_engine_create(int32_t width, int32_t oversample, float *user_buffer) FL_NOEXCEPT
Create and initialize a new HexWaveEngine.
u8 width
Definition blur.h:186

References FL_NOEXCEPT, hexwave_engine_create(), hexwave_engine_destroy(), sGlobalEngine, and fl::width.

+ Here is the call graph for this function: