Struct surfman::platform::generic::egl::surface::EGLBackedSurface

source ·
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

source

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

source

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

source

pub(crate) fn to_surface_texture( self, gl: &Gl, ) -> Result<EGLSurfaceTexture, (Error, EGLBackedSurface)>

source

pub(crate) fn destroy( &mut self, gl: &Gl, egl_display: *const c_void, context_id: ContextID, ) -> Result<Option<*const c_void>, Error>

source

pub(crate) fn present( &self, egl_display: *const c_void, egl_context: *const c_void, ) -> Result<(), Error>

source

pub(crate) fn info(&self) -> SurfaceInfo

source

pub(crate) fn id(&self) -> SurfaceID

source

pub(crate) fn native_window(&self) -> Result<*const c_void, Error>

source

pub(crate) fn unbind( &self, gl: &Gl, egl_display: *const c_void, egl_context: *const c_void, )

source

pub(crate) fn egl_surfaces(&self) -> ExternalEGLSurfaces

Trait Implementations§

source§

impl Debug for EGLBackedSurface

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Send for EGLBackedSurface

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.