Enum glitter::image_data::TexelFormat [] [src]

pub enum TexelFormat {
    Alpha,
    RGB,
    RGBA,
}

The different texel formats.

Variants

A texel contains only an alpha component.

A texel contains red, green, and blue components.

A texel contains red, green, blue, and alpha components.

Methods

impl TexelFormat
[src]

[src]

Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.

[src]

Return the OpenGL integer value for a given enum variant.

Trait Implementations

impl Debug for TexelFormat
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TexelFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TexelFormat
[src]

impl PartialEq for TexelFormat
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for TexelFormat
[src]

impl Hash for TexelFormat
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more