[][src]Enum azul_core::gl::VertexAttributeType

pub enum VertexAttributeType {
    Float,
    Double,
    UnsignedByte,
    UnsignedShort,
    UnsignedInt,
}

Variants

Float

Vertex attribute has type f32

Double

Vertex attribute has type f64

UnsignedByte

Vertex attribute has type u8

UnsignedShort

Vertex attribute has type u16

UnsignedInt

Vertex attribute has type u32

Implementations

impl VertexAttributeType[src]

pub fn get_gl_id(&self) -> GLuint[src]

Returns the OpenGL id for the vertex attribute type, ex. gl::UNSIGNED_BYTE for VertexAttributeType::UnsignedByte.

pub fn get_mem_size(&self) -> usize[src]

Trait Implementations

impl Clone for VertexAttributeType[src]

impl Copy for VertexAttributeType[src]

impl Debug for VertexAttributeType[src]

impl Eq for VertexAttributeType[src]

impl Hash for VertexAttributeType[src]

impl Ord for VertexAttributeType[src]

impl PartialEq<VertexAttributeType> for VertexAttributeType[src]

impl PartialOrd<VertexAttributeType> for VertexAttributeType[src]

impl StructuralEq for VertexAttributeType[src]

impl StructuralPartialEq for VertexAttributeType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.