Enum glitter::image_data::TexelType [] [src]

pub enum TexelType {
    UnsignedByte,
    UnsignedShort565,
    UnsignedShort4444,
    UnsignedShort5551,
}

The data types for a texel.

Variants

Each texel is 4 * 8 bits.

Each texel is 16 bits, with 5-bit/6-bit/5-bit components.

Each texel is 16 bits, with 4, 4-bit components.

Each texel is 16 bits, with 5-bit/5-bit/5-bit/1-bit components.

Methods

impl TexelType
[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 TexelType
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TexelType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TexelType
[src]

impl PartialEq for TexelType
[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 TexelType
[src]

impl Hash for TexelType
[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