Struct piston_window::TextureSettings [−][src]
pub struct TextureSettings { /* fields omitted */ }
Texture creation parameters.
Implementations
impl TextureSettings
[src]
pub fn new() -> TextureSettings
[src]
Create default settings.
pub fn get_convert_gamma(&self) -> bool
[src]
Gets whether to convert gamma, treated as sRGB color space.
pub fn set_convert_gamma(&mut self, val: bool)
[src]
Sets convert gamma.
pub fn convert_gamma(self, val: bool) -> TextureSettings
[src]
Sets convert gamma.
pub fn get_compress(&self) -> bool
[src]
Gets wheter compress on the GPU.
pub fn set_compress(&mut self, val: bool)
[src]
Sets compress.
pub fn compress(self, val: bool) -> TextureSettings
[src]
Sets compress.
pub fn get_generate_mipmap(&self) -> bool
[src]
Gets generate mipmap.
pub fn set_generate_mipmap(&mut self, val: bool)
[src]
Sets generate mipmap.
pub fn generate_mipmap(self, val: bool) -> TextureSettings
[src]
Sets generate mipmap.
pub fn get_min(&self) -> Filter
[src]
Gets minify filter.
pub fn set_min(&mut self, val: Filter)
[src]
Sets minify filter.
pub fn min(self, val: Filter) -> TextureSettings
[src]
Sets minify filter.
pub fn get_mag(&self) -> Filter
[src]
Gets magnify filter
pub fn set_mag(&mut self, val: Filter)
[src]
Sets magnify filter
pub fn mag(self, val: Filter) -> TextureSettings
[src]
Sets magnify filter
pub fn get_mipmap(&self) -> Filter
[src]
Gets minify mipmap filter
pub fn set_mipmap(&mut self, val: Filter)
[src]
Sets magnify mipmap filter, and sets generate_mipmap to true.
pub fn mipmap(self, val: Filter) -> TextureSettings
[src]
Sets magnify mipmap filter, and sets generate_mipmap to true
pub fn get_filter(&self) -> (Filter, Filter)
[src]
Returns the min and mag filter
pub fn set_filter(&mut self, val: Filter)
[src]
Sets the min and mag filter
pub fn filter(self, val: Filter) -> TextureSettings
[src]
Sets the min and mag filter
pub fn get_wrap_u(&self) -> Wrap
[src]
Gets the wrapping mode for the u coordinate
pub fn set_wrap_u(&mut self, val: Wrap)
[src]
Sets the wrapping mode for the u coordinate
pub fn wrap_u(self, val: Wrap) -> TextureSettings
[src]
Sets the wrapping mode for the u coordinate
pub fn get_wrap_v(&self) -> Wrap
[src]
Gets the wrapping mode for the v coordinate
pub fn set_wrap_v(&mut self, val: Wrap)
[src]
Sets the wrapping mode for the v coordinate
pub fn wrap_v(self, val: Wrap) -> TextureSettings
[src]
Sets the wrapping mode for the v coordinate
pub fn get_border_color(&self) -> [f32; 4]
[src]
Gets the border color
pub fn set_border_color(&mut self, val: [f32; 4])
[src]
Sets the border color
pub fn border_color(self, val: [f32; 4]) -> TextureSettings
[src]
Sets the border color
Trait Implementations
impl Clone for TextureSettings
[src]
pub fn clone(&self) -> TextureSettings
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TextureSettings
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextureSettings
impl Send for TextureSettings
impl Sync for TextureSettings
impl Unpin for TextureSettings
impl UnwindSafe for TextureSettings
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,
pub fn borrow_mut(&mut self) -> &mut T
[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> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,