pub struct EGLBackedSurface {
pub(crate) context_id: ContextID,
pub(crate) size: Size2D<i32>,
pub(crate) objects: EGLSurfaceObjects,
pub(crate) destroyed: bool,
}
Fields§
§context_id: ContextID
§size: Size2D<i32>
§objects: EGLSurfaceObjects
§destroyed: bool
Implementations§
source§impl EGLBackedSurface
impl EGLBackedSurface
pub(crate) fn new_generic( gl: &Gl, egl_display: *const c_void, egl_context: *const c_void, context_id: ContextID, context_attributes: &ContextAttributes, size: &Size2D<i32>, ) -> EGLBackedSurface
pub(crate) fn new_window( egl_display: *const c_void, egl_config: *const c_void, native_window: *mut c_void, context_id: ContextID, size: &Size2D<i32>, ) -> EGLBackedSurface
pub(crate) fn to_surface_texture( self, gl: &Gl, ) -> Result<EGLSurfaceTexture, (Error, EGLBackedSurface)>
pub(crate) fn destroy( &mut self, gl: &Gl, egl_display: *const c_void, context_id: ContextID, ) -> Result<Option<*const c_void>, Error>
pub(crate) fn present( &self, egl_display: *const c_void, egl_context: *const c_void, ) -> Result<(), Error>
pub(crate) fn info(&self) -> SurfaceInfo
pub(crate) fn id(&self) -> SurfaceID
pub(crate) fn native_window(&self) -> Result<*const c_void, Error>
pub(crate) fn unbind( &self, gl: &Gl, egl_display: *const c_void, egl_context: *const c_void, )
pub(crate) fn egl_surfaces(&self) -> ExternalEGLSurfaces
Trait Implementations§
source§impl Debug for EGLBackedSurface
impl Debug for EGLBackedSurface
impl Send for EGLBackedSurface
Auto Trait Implementations§
impl Freeze for EGLBackedSurface
impl RefUnwindSafe for EGLBackedSurface
impl !Sync for EGLBackedSurface
impl Unpin for EGLBackedSurface
impl UnwindSafe for EGLBackedSurface
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