[]Trait opengl_graphics::CreateTexture

pub trait CreateTexture<F>: ImageSize + TextureOp<F> {
    fn create<S>(
        factory: &mut F,
        format: Format,
        memory: &[u8],
        size: S,
        settings: &TextureSettings
    ) -> Result<Self, Self::Error>
    where
        S: Into<[u32; 2]>
; }

Implemented by textures for creation.

Required methods

fn create<S>(
    factory: &mut F,
    format: Format,
    memory: &[u8],
    size: S,
    settings: &TextureSettings
) -> Result<Self, Self::Error> where
    S: Into<[u32; 2]>, 

Create texture from memory.

Loading content...

Implementors

impl CreateTexture<()> for Texture[src]

Loading content...