Trait draw2d::graphics::ext::Texture2dFactory[][src]

pub trait Texture2dFactory {
    fn create_empty_2d_texture(
        &self,
        name: impl Into<String>,
        width: u32,
        height: u32,
        mip_levels: u32
    ) -> Result<TextureImage>; }
Expand description

Types which implement this trait can easily construct new texture images which represent 2d rgba textures.

Required methods

Create a new 2d texture image and view.

Implementations on Foreign Types

Implementors