Enum glitter::image_data::RenderbufferFormat [] [src]

pub enum RenderbufferFormat {
    RGBA4,
    RGB565,
    RGB5A1,
    DepthComponent16,
    StencilIndex8,
}

The various image formats of a renderbuffer.

Variants

The red, green, blue, and alpha channels are all stored with 4 bits.

The red, green, and blue channels are stored with 5 bits, 6 bits, and 5 bits, respectively.

The red, green, and blue channels are stored with 5 bits, and the alpha channel is stored with 1 bit.

The renderbuffer stores a 16-bit depth component.

The renderbuffer stores an 8-bit stencil component.

Methods

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

[src]

Formats the value using the given formatter. Read more

impl Clone for RenderbufferFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RenderbufferFormat
[src]

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

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