Enum glitter::types::DataType [] [src]

pub enum DataType {
    Byte,
    UnsignedByte,
    Short,
    UnsignedShort,
    Fixed,
    Float,
}

The different OpenGL data types.

Variants

A signed 8-bit byte.

An unsigned 8-bit byte.

A signed 16-bit short.

An unsigned 16-bit short.

A signed 32-bit, fixed-point number in 16.16 form.

A 32-bit, IEEE floating-point number.

Methods

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

[src]

Formats the value using the given formatter. Read more

impl Clone for DataType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for DataType
[src]

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

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