pub struct EglBucket {
pub display: EGLDisplay,
pub config: EGLConfig,
pub context: EGLContext,
pub surface: EGLSurface,
}Expand description
This structure collects EGL-related data.
Fields§
§display: EGLDisplay§config: EGLConfig§context: EGLContext§surface: EGLSurfaceImplementations§
Source§impl EglBucket
impl EglBucket
Sourcepub fn new(
native_display: EGLNativeDisplayType,
window_type: EGLNativeWindowType,
) -> Result<Self, GraphicsError>
pub fn new( native_display: EGLNativeDisplayType, window_type: EGLNativeWindowType, ) -> Result<Self, GraphicsError>
EglBucket constructor.
Sourcepub fn make_current(&self) -> Result<EglContext, GraphicsError>
pub fn make_current(&self) -> Result<EglContext, GraphicsError>
Make EGL context current.
This method returns EglContext structure which will release context when goes out of the
scope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EglBucket
impl RefUnwindSafe for EglBucket
impl !Send for EglBucket
impl !Sync for EglBucket
impl Unpin for EglBucket
impl UnwindSafe for EglBucket
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