Struct conrod::backend::piston::gfx::TextureSettings
[−]
[src]
pub struct TextureSettings { /* fields omitted */ }
Texture creation parameters.
Methods
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