pub(crate) struct EGLBackedContext {
pub(crate) egl_context: *const c_void,
pub(crate) id: ContextID,
framebuffer: Framebuffer<EGLBackedSurface, ExternalEGLSurfaces>,
context_is_owned: bool,
}
Fields§
§egl_context: *const c_void
§id: ContextID
§framebuffer: Framebuffer<EGLBackedSurface, ExternalEGLSurfaces>
§context_is_owned: bool
Implementations§
source§impl EGLBackedContext
impl EGLBackedContext
pub(crate) unsafe fn new( egl_display: *const c_void, descriptor: &ContextDescriptor, share_with: Option<&EGLBackedContext>, gl_api: GLApi ) -> Result<EGLBackedContext, Error>
pub(crate) unsafe fn from_native_context( native_context: NativeContext ) -> EGLBackedContext
pub(crate) unsafe fn destroy(&mut self, egl_display: *const c_void)
pub(crate) fn native_context(&self) -> NativeContext
pub(crate) unsafe fn make_current( &self, egl_display: *const c_void ) -> Result<(), Error>
pub(crate) fn is_current(&self) -> bool
pub(crate) unsafe fn bind_surface( &mut self, egl_display: *const c_void, surface: EGLBackedSurface ) -> Result<(), (Error, EGLBackedSurface)>
pub(crate) unsafe fn unbind_surface( &mut self, gl: &Gl, egl_display: *const c_void ) -> Result<Option<EGLBackedSurface>, Error>
pub(crate) fn surface_info(&self) -> Result<Option<SurfaceInfo>, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EGLBackedContext
impl !Send for EGLBackedContext
impl !Sync for EGLBackedContext
impl Unpin for EGLBackedContext
impl UnwindSafe for EGLBackedContext
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