Struct solstice::texture::TextureInfo
source · pub struct TextureInfo { /* private fields */ }
Implementations§
source§impl TextureInfo
impl TextureInfo
pub fn new( format: PixelFormat, width: u32, height: u32, filter: Filter, wrap: Wrap, mipmaps: bool ) -> Self
pub fn width(&self) -> u32
pub fn set_width(&mut self, width: u32)
pub fn height(&self) -> u32
pub fn set_height(&mut self, height: u32)
pub fn get_format(&self) -> PixelFormat
pub fn set_format(&mut self, format: PixelFormat)
pub fn wrap(&self) -> Wrap
pub fn set_wrap(&mut self, wrap: Wrap)
pub fn filter(&self) -> Filter
pub fn set_filter(&mut self, filter: Filter)
pub fn mipmaps(&self) -> bool
pub fn set_mipmaps(&mut self, mipmaps: bool)
Trait Implementations§
source§impl Clone for TextureInfo
impl Clone for TextureInfo
source§fn clone(&self) -> TextureInfo
fn clone(&self) -> TextureInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextureInfo
impl Debug for TextureInfo
source§impl Default for TextureInfo
impl Default for TextureInfo
source§impl PartialEq<TextureInfo> for TextureInfo
impl PartialEq<TextureInfo> for TextureInfo
source§fn eq(&self, other: &TextureInfo) -> bool
fn eq(&self, other: &TextureInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.