Skip to main content

load_texture

Function load_texture 

Source
pub fn load_texture(world: &mut World, name: &str, image_bytes: &[u8])
Expand description

Registers a texture under name from encoded png or jpeg bytes. The texture decodes in the background and stays resident until shutdown.