Trait glium::texture::Texture
[−]
[src]
pub trait Texture {
fn get_width(&self) -> u32;
fn get_height(&self) -> Option<u32>;
fn get_depth(&self) -> Option<u32>;
fn get_array_size(&self) -> Option<u32>;
}Trait that describes a texture.
Required Methods
fn get_width(&self) -> u32
Returns the width in pixels of the texture.
fn get_height(&self) -> Option<u32>
Returns the height in pixels of the texture, or None for one dimensional textures.
fn get_depth(&self) -> Option<u32>
Returns the depth in pixels of the texture, or None for one or two dimensional textures.
fn get_array_size(&self) -> Option<u32>
Returns the number of textures in the array, or None for non-arrays.
Implementors
impl Texture for Texture1dimpl Texture for CompressedTexture1dimpl Texture for SrgbTexture1dimpl Texture for CompressedSrgbTexture1dimpl Texture for IntegralTexture1dimpl Texture for UnsignedTexture1dimpl Texture for DepthTexture1dimpl Texture for StencilTexture1dimpl Texture for DepthStencilTexture1dimpl Texture for Texture2dimpl Texture for CompressedTexture2dimpl Texture for SrgbTexture2dimpl Texture for CompressedSrgbTexture2dimpl Texture for IntegralTexture2dimpl Texture for UnsignedTexture2dimpl Texture for DepthTexture2dimpl Texture for StencilTexture2dimpl Texture for DepthStencilTexture2dimpl Texture for Texture2dMultisampleimpl Texture for IntegralTexture2dMultisampleimpl Texture for SrgbTexture2dMultisampleimpl Texture for UnsignedTexture2dMultisampleimpl Texture for DepthTexture2dMultisampleimpl Texture for StencilTexture2dMultisampleimpl Texture for DepthStencilTexture2dMultisampleimpl Texture for Texture3dimpl Texture for CompressedTexture3dimpl Texture for SrgbTexture3dimpl Texture for CompressedSrgbTexture3dimpl Texture for IntegralTexture3dimpl Texture for UnsignedTexture3dimpl Texture for DepthTexture3dimpl Texture for StencilTexture3dimpl Texture for DepthStencilTexture3dimpl Texture for Texture1dArrayimpl Texture for CompressedTexture1dArrayimpl Texture for SrgbTexture1dArrayimpl Texture for CompressedSrgbTexture1dArrayimpl Texture for IntegralTexture1dArrayimpl Texture for UnsignedTexture1dArrayimpl Texture for DepthTexture1dArrayimpl Texture for StencilTexture1dArrayimpl Texture for DepthStencilTexture1dArrayimpl Texture for Texture2dArrayimpl Texture for CompressedTexture2dArrayimpl Texture for SrgbTexture2dArrayimpl Texture for CompressedSrgbTexture2dArrayimpl Texture for IntegralTexture2dArrayimpl Texture for UnsignedTexture2dArrayimpl Texture for DepthTexture2dArrayimpl Texture for StencilTexture2dArrayimpl Texture for DepthStencilTexture2dArrayimpl Texture for Texture2dMultisampleArrayimpl Texture for SrgbTexture2dMultisampleArrayimpl Texture for IntegralTexture2dMultisampleArrayimpl Texture for UnsignedTexture2dMultisampleArrayimpl Texture for DepthTexture2dMultisampleArrayimpl Texture for StencilTexture2dMultisampleArrayimpl Texture for DepthStencilTexture2dMultisampleArray