[−][src]Struct glium::texture::TextureAnyImage
Represents a specific 2D image of a texture. 1D textures are considered as having a height of 1.
Implementations
impl<'a> TextureAnyImage<'a>
[src]
pub fn get_texture(&self) -> &'a TextureAny
[src]
Returns the texture.
pub fn get_level(&self) -> u32
[src]
Returns the level of the texture.
pub fn get_layer(&self) -> u32
[src]
Returns the layer of the texture.
pub fn get_cubemap_layer(&self) -> Option<CubeLayer>
[src]
Returns the cubemap layer of this image, or None
if the texture is not a cubemap.
pub fn get_width(&self) -> u32
[src]
Returns the width of this texture slice.
pub fn get_height(&self) -> Option<u32>
[src]
Returns the height of this texture slice.
pub fn get_samples(&self) -> Option<u32>
[src]
Returns the number of samples of the texture.
pub fn raw_read<T, P>(&self, rect: &Rect) -> T where
T: Texture2dDataSink<P>,
P: PixelValue,
[src]
T: Texture2dDataSink<P>,
P: PixelValue,
Reads the content of the image.
Panic
- Panics if the rect is out of range.
- Panics if it fails to read the texture.
pub fn raw_read_to_pixel_buffer<P>(&self, rect: &Rect, dest: &PixelBuffer<P>) where
P: PixelValue,
[src]
P: PixelValue,
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.
pub fn raw_clear_buffer<D>(&self, data: D) where
D: Into<ClearBufferData>,
[src]
D: Into<ClearBufferData>,
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> Clone for TextureAnyImage<'a>
[src]
fn clone(&self) -> TextureAnyImage<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for TextureAnyImage<'a>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dMultisampleMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture3dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture1dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbTexture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralTexture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedTexture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilTexture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture2dMultisampleArrayLayerMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilCubemapImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for SrgbCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for CompressedSrgbCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for IntegralCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for UnsignedCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for StencilCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilCubemapArrayImage<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for DepthStencilTexture1dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
impl<'t> Into<TextureAnyImage<'t>> for Texture2dMipmap<'t>
[src]
fn into(self) -> TextureAnyImage<'t>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TextureAnyImage<'a>
impl<'a> !Send for TextureAnyImage<'a>
impl<'a> !Sync for TextureAnyImage<'a>
impl<'a> Unpin for TextureAnyImage<'a>
impl<'a> !UnwindSafe for TextureAnyImage<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T where
T: Copy,
[src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
fn read<F, E>(usize, F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>,
[src]
F: FnOnce(&mut T) -> Result<(), E>,
fn get_elements_size() -> usize
[src]
fn to_void_ptr(&Self) -> *const ()
[src]
fn ref_from_ptr(*mut (), usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,