Skip to main content

get_texture_or_create_from_file_ascii

Function get_texture_or_create_from_file_ascii 

Source
pub unsafe fn get_texture_or_create_from_file_ascii(
    identifier: impl AsRef<str>,
    file: impl AsRef<str>,
) -> Option<Texture>
Expand description

Attempts to retrieve a texture or creates it from the given ASCII file path.

ยงSafety

The file path must only contain valid ASCII characters.