[][src]Enum glutin::GlRequest

pub enum GlRequest {
    Specific(Api(u8, u8)),
    GlThenGles {
        opengl_version: (u8, u8),
        opengles_version: (u8, u8),

Describes the OpenGL API and version that are being requested when a context is created.



Request the latest version of the "best" API of this platform.

On desktop, will try OpenGL.

Specific(Api(u8, u8))

Request a specific version of a specific API.

Example: GlRequest::Specific(Api::OpenGl, (3, 3)).


If OpenGL is available, create an OpenGL Context with the specified opengl_version. Else if OpenGL ES or WebGL is available, create a context with the specified opengles_version.

Fields of GlThenGles

opengl_version: (u8, u8)

The version to use for OpenGL.

opengles_version: (u8, u8)

The version to use for OpenGL ES.


impl GlRequest[src]

pub fn to_gl_version(&self) -> Option<(u8, u8)>[src]

Extract the desktop GL version, if any.

Trait Implementations

impl Copy for GlRequest[src]

impl Clone for GlRequest[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for GlRequest[src]

Auto Trait Implementations

impl Send for GlRequest

impl Sync for GlRequest

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T