Enum azul_glutin::GlRequest [−][src]
pub enum GlRequest { Latest, Specific(Api, (u8, u8)), GlThenGles { opengl_version: (u8, u8), opengles_version: (u8, u8), }, }
Expand description
Describes the OpenGL API and version that are being requested when a context is created.
Variants
Expand description
Request the latest version of the “best” API of this platform.
On desktop, will try OpenGL.
Expand description
Request a specific version of a specific API.
Example: GlRequest::Specific(Api::OpenGl, (3, 3))
.
Expand description
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
.
Show fields
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GlRequest
impl Send for GlRequest
impl Sync for GlRequest
impl Unpin for GlRequest
impl UnwindSafe for GlRequest
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more