Trait rich_sdl2_rust::texture::QueryExt
source · pub trait QueryExt {
// Required methods
fn format(&self) -> PixelFormatKind;
fn access(&self) -> TextureAccess;
fn size(&self) -> Size;
}
Expand description
An extension for Texture
to query the texture information.
Required Methods§
sourcefn format(&self) -> PixelFormatKind
fn format(&self) -> PixelFormatKind
Returns the format of the texture.
sourcefn access(&self) -> TextureAccess
fn access(&self) -> TextureAccess
Returns the access of the texture.