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