[][src]Enum azul_core::gl::GlApiVersion

pub enum GlApiVersion {
    Gl {
        major: usize,
        minor: usize,
    },
    GlEs {
        major: usize,
        minor: usize,
    },
}

Variants

Gl

Fields of Gl

major: usizeminor: usize
GlEs

Fields of GlEs

major: usizeminor: usize

Implementations

impl GlApiVersion[src]

pub fn get(gl_context: &dyn Gl) -> Self[src]

Returns the OpenGL version of the context

Trait Implementations

impl Clone for GlApiVersion[src]

impl Copy for GlApiVersion[src]

impl Debug for GlApiVersion[src]

impl Eq for GlApiVersion[src]

impl Hash for GlApiVersion[src]

impl Ord for GlApiVersion[src]

impl PartialEq<GlApiVersion> for GlApiVersion[src]

impl PartialOrd<GlApiVersion> for GlApiVersion[src]

impl StructuralEq for GlApiVersion[src]

impl StructuralPartialEq for GlApiVersion[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.