pub struct ContextDescriptor {
pub(crate) egl_config_id: i32,
pub(crate) gl_version: GLVersion,
pub(crate) compatibility_profile: bool,
}
Expand description
Information needed to create a context. Some APIs call this a “config” or a “pixel format”.
These are local to a device.
Fields§
§egl_config_id: i32
§gl_version: GLVersion
§compatibility_profile: bool
Implementations§
source§impl ContextDescriptor
impl ContextDescriptor
pub(crate) unsafe fn new( egl_display: *const c_void, attributes: &ContextAttributes, extra_config_attributes: &[i32], ) -> Result<ContextDescriptor, Error>
pub(crate) unsafe fn from_egl_context( gl: &Gl, egl_display: *const c_void, egl_context: *const c_void, ) -> ContextDescriptor
pub(crate) unsafe fn to_egl_config( &self, egl_display: *const c_void, ) -> *const c_void
pub(crate) unsafe fn attributes( &self, egl_display: *const c_void, ) -> ContextAttributes
Trait Implementations§
source§impl Clone for ContextDescriptor
impl Clone for ContextDescriptor
source§fn clone(&self) -> ContextDescriptor
fn clone(&self) -> ContextDescriptor
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 moreAuto Trait Implementations§
impl Freeze for ContextDescriptor
impl RefUnwindSafe for ContextDescriptor
impl Send for ContextDescriptor
impl Sync for ContextDescriptor
impl Unpin for ContextDescriptor
impl UnwindSafe for ContextDescriptor
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