Enum glium::glutin::GlRequest [] [src]

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

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

Variants

Latest

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

On desktop, will try OpenGL.

Specific

Request a specific version of a specific API.

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

GlThenGles

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

opengl_version
opengles_version

Methods

impl GlRequest

fn to_gl_version(&self) -> Option<(u8, u8)>

Extract the desktop GL version, if any.

Trait Implementations

Derived Implementations

impl Clone for GlRequest

fn clone(&self) -> GlRequest

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

impl Copy for GlRequest

impl Debug for GlRequest

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>