Skip to main content

load_texture_from_data

Function load_texture_from_data 

Source
pub fn load_texture_from_data(width: u32, height: u32, data: &[f32]) -> Texture
Expand description

Loads a texture from raw RGBA f32 pixels. data.len() must equal width * height * 4, otherwise this panics.