Struct texture::TextureSettings
[−]
[src]
pub struct TextureSettings { /* fields omitted */ }Texture creation parameters.
Methods
impl TextureSettings[src]
fn new() -> TextureSettings[src]
Create default settings.
fn get_convert_gamma(&self) -> bool[src]
Gets whether to convert gamma, treated as sRGB color space.
fn set_convert_gamma(&mut self, val: bool)[src]
Sets convert gamma.
fn convert_gamma(self, val: bool) -> Self[src]
Sets convert gamma.
fn get_compress(&self) -> bool[src]
Gets wheter compress on the GPU.
fn set_compress(&mut self, val: bool)[src]
Sets compress.
fn compress(self, val: bool) -> Self[src]
Sets compress.
fn get_generate_mipmap(&self) -> bool[src]
Gets generate mipmap.
fn set_generate_mipmap(&mut self, val: bool)[src]
Sets generate mipmap.
fn generate_mipmap(self, val: bool) -> Self[src]
Sets generate mipmap.
fn get_min(&self) -> Filter[src]
Gets minify filter.
fn set_min(&mut self, val: Filter)[src]
Sets minify filter.
fn min(self, val: Filter) -> Self[src]
Sets minify filter.
fn get_mag(&self) -> Filter[src]
Gets magnify filter
fn set_mag(&mut self, val: Filter)[src]
Sets magnify filter
fn mag(self, val: Filter) -> Self[src]
Sets magnify filter
fn get_mipmap(&self) -> Filter[src]
Gets minify mipmap filter
fn set_mipmap(&mut self, val: Filter)[src]
Sets magnify mipmap filter, and sets generate_mipmap to true.
fn mipmap(self, val: Filter) -> Self[src]
Sets magnify mipmap filter, and sets generate_mipmap to true
fn get_filter(&self) -> (Filter, Filter)[src]
Returns the min and mag filter
fn set_filter(&mut self, val: Filter)[src]
Sets the min and mag filter
fn filter(self, val: Filter) -> Self[src]
Sets the min and mag filter
Trait Implementations
impl Clone for TextureSettings[src]
fn clone(&self) -> TextureSettings[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more