Macro kludgine::include_texture
source · macro_rules! include_texture { ($path:expr) => { ... }; ($path:expr, $filter_mode:expr) => { ... }; }
Expand description
Loads a texture’s bytes into the executable. This macro returns a result
containing a LazyTexture
.
This macro takes a single parameter, which is forwarded along to
include_bytes!
. The bytes that are loaded are then parsed using
image::load_from_memory
and loaded using LazyTexture::from_image
.