Struct glium_graphics::Texture [] [src]

pub struct Texture(pub SrgbTexture2d);

Wrapper for 2D texture.

Methods

impl Texture
[src]

Creates a new Texture.

Returns empty texture.

Creates a texture from path.

Creates a texture from image.

Creates texture from memory alpha.

Updates texture with an image.

Trait Implementations

impl ImageSize for Texture
[src]

Get the image size.

Gets the image width.

Gets the image height.

impl<F> CreateTexture<F> for Texture where
    F: Facade
[src]

The error when creating texture.

Create texture from memory.

impl<F> UpdateTexture<F> for Texture where
    F: Facade
[src]

The error when updating texture.

Update the texture. Read more