Skip to main content

TextureSource

Trait TextureSource 

Source
pub trait TextureSource<'a> {
    // Required method
    fn create_texture(self) -> Result<Texture<'a>, KtxError>;
}
Expand description

A source of Textures.

Required Methods§

Source

fn create_texture(self) -> Result<Texture<'a>, KtxError>

Attempts to create a new texture by consuming self.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§