Struct texture::TextureSettings [] [src]

pub struct TextureSettings {
    // some fields omitted
}

Texture creation parameters.

Methods

impl TextureSettings

fn new() -> TextureSettings

Create default settings.

fn get_convert_gamma(&self) -> bool

Gets whether to convert gamma, treated as sRGB color space.

fn set_convert_gamma(&mut self, val: bool)

Sets convert gamma.

fn convert_gamma(self, val: bool) -> Self

Sets convert gamma.

fn get_compress(&self) -> bool

Gets wheter compress on the GPU.

fn set_compress(&mut self, val: bool)

Sets compress.

fn compress(self, val: bool) -> Self

Sets compress.

fn get_generate_mipmap(&self) -> bool

Gets generate mipmap.

fn set_generate_mipmap(&mut self, val: bool)

Sets generate mipmap.

fn generate_mipmap(self, val: bool) -> Self

Sets generate mipmap.

fn get_min(&self) -> Filter

Gets minify filter.

fn set_min(&mut self, val: Filter)

Sets minify filter.

fn min(self, val: Filter) -> Self

Sets minify filter.

fn get_mag(&self) -> Filter

Gets magnify filter

fn set_mag(&mut self, val: Filter)

Sets magnify filter

fn mag(self, val: Filter) -> Self

Sets magnify filter

fn get_mipmap(&self) -> Filter

Gets minify mipmap filter

fn set_mipmap(&mut self, val: Filter)

Sets magnify mipmap filter, and sets generate_mipmap to true.

fn mipmap(self, val: Filter) -> Self

Sets magnify mipmap filter, and sets generate_mipmap to true

fn get_filter(&self) -> (Filter, Filter)

Returns the min and mag filter

fn set_filter(&mut self, val: Filter)

Sets the min and mag filter

fn filter(self, val: Filter) -> Self

Sets the min and mag filter