Struct amethyst_renderer::BmpFormat [−][src]
pub struct BmpFormat;
Allows loading of BMP files.
Trait Implementations
impl Clone for BmpFormat[src]
impl Clone for BmpFormatfn clone(&self) -> BmpFormat[src]
fn clone(&self) -> BmpFormatReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl SimpleFormat<Texture> for BmpFormat[src]
impl SimpleFormat<Texture> for BmpFormatconst NAME: &'static str
NAME: &'static str = "BMP"
A unique identifier for this format.
type Options = TextureMetadata
Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more
fn import(
&self,
bytes: Vec<u8>,
options: TextureMetadata
) -> Result<TextureData>[src]
fn import(
&self,
bytes: Vec<u8>,
options: TextureMetadata
) -> Result<TextureData>Produces asset data from given bytes.