[−]Struct opengl_graphics::TextureSettings
Texture creation parameters.
Methods
impl TextureSettings
impl TextureSettings
pub fn new() -> TextureSettings |
Create default settings.
pub fn get_convert_gamma(&self) -> bool |
Gets whether to convert gamma, treated as sRGB color space.
pub fn set_convert_gamma(&mut self, val: bool) |
Sets convert gamma.
pub fn convert_gamma(self, val: bool) -> TextureSettings |
Sets convert gamma.
pub fn get_compress(&self) -> bool |
Gets wheter compress on the GPU.
pub fn set_compress(&mut self, val: bool) |
Sets compress.
pub fn compress(self, val: bool) -> TextureSettings |
Sets compress.
pub fn get_generate_mipmap(&self) -> bool |
Gets generate mipmap.
pub fn set_generate_mipmap(&mut self, val: bool) |
Sets generate mipmap.
pub fn generate_mipmap(self, val: bool) -> TextureSettings |
Sets generate mipmap.
pub fn get_min(&self) -> Filter |
Gets minify filter.
pub fn set_min(&mut self, val: Filter) |
Sets minify filter.
pub fn min(self, val: Filter) -> TextureSettings |
Sets minify filter.
pub fn get_mag(&self) -> Filter |
Gets magnify filter
pub fn set_mag(&mut self, val: Filter) |
Sets magnify filter
pub fn mag(self, val: Filter) -> TextureSettings |
Sets magnify filter
pub fn get_mipmap(&self) -> Filter |
Gets minify mipmap filter
pub fn set_mipmap(&mut self, val: Filter) |
Sets magnify mipmap filter, and sets generate_mipmap to true.
pub fn mipmap(self, val: Filter) -> TextureSettings |
Sets magnify mipmap filter, and sets generate_mipmap to true
pub fn get_filter(&self) -> (Filter, Filter) |
Returns the min and mag filter
pub fn set_filter(&mut self, val: Filter) |
Sets the min and mag filter
pub fn filter(self, val: Filter) -> TextureSettings |
Sets the min and mag filter
Trait Implementations
impl Copy for TextureSettings
impl Copy for TextureSettings
impl Clone for TextureSettings
impl Clone for TextureSettings
fn clone(&self) -> TextureSettings |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for TextureSettings
impl Send for TextureSettings
impl Sync for TextureSettings
impl Sync for TextureSettings
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where |
Sets value
as a parameter of self
.