Enum adi_screen::Style [] [src]

pub enum Style {
    Invisible,
    Solid(usize),
    Texture(usize, NativeTexture),
}

Style represents a shader with an optionally attached texture.

Variants

Methods

impl Style
[src]

Create a new style. Used on it's own, the style is invisible.

Use the second 4 values on a vertex as RGB colors.

Set the style to opaque image from ppm data, image.

Set the style to ppm image, image, with pixels with the color, key, replaced with a transparent pixel.

Apply custom shader at index, index, to self.

Trait Implementations

impl Copy for Style
[src]

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more