Skip to main content

load_texture_from_file_ascii

Function load_texture_from_file_ascii 

Source
pub unsafe fn load_texture_from_file_ascii(
    identifier: impl AsRef<str>,
    file: impl AsRef<str>,
    callback: Option<RawTextureReceiveCallback>,
)
Expand description

Loads a texture from the given file path.

You can create a RawTextureReceiveCallback using the texture_receive macro.

ยงSafety

The file path must only contain valid ASCII characters.