pub fn render_shadow(
shadow_buffer: &mut [u32],
buf_width: u32,
width: u32,
height: u32,
radius: u32,
opacity: u8,
)Expand description
Render a soft shadow behind a window surface.
shadow_buffer should be pre-allocated with
(width + 2*radius) * (height + 2*radius) u32 elements.
Uses a 3-pass box blur approximating a Gaussian shadow.