Enum nannou::ui::backend::glium::glium::backend::glutin::glutin::GlRequest [−]
pub enum GlRequest { Latest, 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.
Variants
Latest
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))
.
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 of GlThenGles
opengl_version: (u8, u8) | The version to use for OpenGL. |
opengles_version: (u8, u8) | The version to use for OpenGL ES. |
Methods
impl GlRequest
impl GlRequest
Trait Implementations
impl Clone for GlRequest
impl Clone for GlRequest
fn clone(&self) -> GlRequest
fn clone(&self) -> GlRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GlRequest
impl Debug for GlRequest
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for GlRequest
impl Copy for GlRequest