Function load_texture_from_url

Source
pub fn load_texture_from_url(
    identifier: impl AsRef<str>,
    remote: impl AsRef<str>,
    endpoint: impl AsRef<str>,
    callback: Option<RawTextureReceiveCallback>,
)
Expand description

Loads a texture from the given URL.

You can create a RawTextureReceiveCallback using the texture_receive macro.

ยงUsage

load_texture_from_url(
    "TEX_DUNGEON_ICON",
    "https://render.guildwars2.com",
    "/file/943538394A94A491C8632FBEF6203C2013443555/102478.png",
    Some(receive_texture),
)