Struct egli::Surface [] [src]

pub struct Surface { /* fields omitted */ }

[EGL 1.0] RAII wrapper for EGLSurface.

When dropped, frees up the surface with eglDestroySurface call.

Note that the surface would not be immediately freed if it is current to any thread. In such a case, the surface will be freed when it is no longer used.

Methods

impl Surface
[src]

Create a Surface from an existing EGL display and surface handles.

Get raw handle.

[EGL 1.0] Returns the width of the surface in pixels.

Result of eglQuerySurface with EGL_WIDTH parameter.

[EGL 1.0] Returns the height of the surface in pixels.

Result of eglQuerySurface with EGL_HEIGHT parameter.

Drops Surface without cleaning up any resources.

Returns EGLSurface handle.

Alias for Into<egl::EGLSurface>.

Trait Implementations

impl Drop for Surface
[src]

A method called when the value goes out of scope. Read more

impl Into<EGLSurface> for Surface
[src]

Performs the conversion.