Skip to main content

load_texture_robust

Function load_texture_robust 

Source
pub fn load_texture_robust(
    ctx: &Context,
    path: &Path,
    name: &str,
) -> Result<TextureHandle, Box<dyn Error>>
Expand description

Texture loader with multiple fallbacks

ยงErrors

Returns an error if the texture file cannot be found, read, or decoded.