Struct cognitive_graphics::egl_tools::EglBucket
[−]
[src]
pub struct EglBucket { pub display: EGLDisplay, pub config: EGLConfig, pub context: EGLContext, pub surface: EGLSurface, }
This structure collects EGL-related data.
Fields
display: EGLDisplay
config: EGLConfig
context: EGLContext
surface: EGLSurface
Methods
impl EglBucket
[src]
fn destroy(self)
Destroys surface, context and terminates display.
impl EglBucket
[src]
fn new(
native_display: EGLNativeDisplayType,
window_type: EGLNativeWindowType
) -> Result<Self, GraphicsError>
native_display: EGLNativeDisplayType,
window_type: EGLNativeWindowType
) -> Result<Self, GraphicsError>
EglBucket
constructor.
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
impl Clone for EglBucket
[src]
fn clone(&self) -> EglBucket
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more