pub enum ContextApi {
OpenGl(Option<Version>),
Gles(Option<Version>),
}
Expand description
The rendering Api context should support.
Variants§
OpenGl(Option<Version>)
OpenGL Api version that should be used by the context.
When using None
as Version
any OpenGL context will be picked,
however when the GlProfile::Core
is used at least 3.3 will be
requested.
Gles(Option<Version>)
OpenGL Api version that should be used by the context.
When using None
as Version
the latest known major version is
picked. Versions that are higher than what was picked automatically
could still be supported.
Trait Implementations§
Source§impl Clone for ContextApi
impl Clone for ContextApi
Source§fn clone(&self) -> ContextApi
fn clone(&self) -> ContextApi
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContextApi
impl Debug for ContextApi
Source§impl Default for ContextApi
impl Default for ContextApi
Source§impl PartialEq for ContextApi
impl PartialEq for ContextApi
impl Copy for ContextApi
impl Eq for ContextApi
impl StructuralPartialEq for ContextApi
Auto Trait Implementations§
impl Freeze for ContextApi
impl RefUnwindSafe for ContextApi
impl Send for ContextApi
impl Sync for ContextApi
impl Unpin for ContextApi
impl UnwindSafe for ContextApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more