Struct glium::texture::TextureAnyImage [] [src]

pub struct TextureAnyImage<'a> { /* fields omitted */ }

Represents a specific 2D image of a texture. 1D textures are considered as having a height of 1.

Methods

impl<'a> TextureAnyImage<'a>
[src]

[src]

Returns the texture.

[src]

Returns the level of the texture.

[src]

Returns the layer of the texture.

[src]

Returns the cubemap layer of this image, or None if the texture is not a cubemap.

[src]

Returns the width of this texture slice.

[src]

Returns the height of this texture slice.

[src]

Returns the number of samples of the texture.

[src]

Reads the content of the image.

Panic

  • Panics if the rect is out of range.
  • Panics if it fails to read the texture.

[src]

Reads the content of the image to a pixel buffer.

Panic

  • Panics if the rect is out of range.
  • Panics if the buffer is not large enough.
  • Panics if it fails to read the texture.

[src]

Clears the content of the texture to a specific value.

Panic

Panics if data does not match the kind of texture. For example passing a [i32; 4] when using a regular (float) texture.

Trait Implementations

impl<'a> Copy for TextureAnyImage<'a>
[src]

impl<'a> Clone for TextureAnyImage<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'t> Into<TextureAnyImage<'t>> for Texture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture1dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for Texture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for Texture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dMultisampleMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for Texture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture3dMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for Texture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture1dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for Texture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for Texture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dMultisampleArrayLayerMipmap<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilCubemapImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for SrgbCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for IntegralCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for UnsignedCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for StencilCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.

impl<'t> Into<TextureAnyImage<'t>> for DepthStencilCubemapArrayImage<'t>
[src]

[src]

Performs the conversion.