Realm

oa::render::texture_from_file_on

Decode a still-image file directly into a packed RGBA8 Texture on a particular engine. Errors Returns the same errors as texture_from_file.

FnRust public API

Function Documentation

pub fn texture_from_file_on( engine: &Engine, path: impl AsRef<Path> ) -> Result<Texture>
Decode a still-image file directly into a packed RGBA8 Texture on a particular engine. Errors Returns the same errors as texture_from_file.