Struct piston_window::TextureSettings []

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) -> TextureSettings

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) -> TextureSettings

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) -> TextureSettings

Sets generate mipmap.