pub fn main_wave_geometry_projectm(
mw: &MainWave,
time: f32,
bass_mid_treb: [f32; 3],
viewport: (u32, u32),
tail: &mut PmWaveTail,
scratch: &mut PmWaveScratch,
) -> Option<PmWaveGeom>Expand description
Port of projectM’s main waveform (Waveform::Draw minus the GL calls): vertex generation, SmoothWave,
alpha and colour for wave modes 0..PM_WAVE_MODES (mw.mode already wrapped).
time:renderContext.time;bass_mid_treb:audioData.bass/mid/treb;viewport: render target size;tail: the persistent wave-buffer state (PmWaveTail), advanced by this call (projectM runsGetVerticesevery frame, also when nothing is drawn).
Returns None for unknown modes. An alpha of 0 is still returned (the caller may skip drawing).