Struct egli::Display [] [src]

pub struct Display { /* fields omitted */ }

[EGL 1.0] RAII wrapper for EGLDisplay.

When dropped, frees up any associated surface and context using

Be careful when using this code, it's not being tested!
eglMakeCurrent(.., NO_SURFACE, NO_SURFACE, NO_CONTEXT);

call. Followed by eglTerminate.

Methods

impl Display
[src]

[src]

[EGL 1.0] Create a Display from an EGL display connection.

On success, returns a Display value that will clean up resources when terminated.

If no display connection matching display_id is available, EGL_NO_DISPLAY is returned. No error is generated.

display_id

Specifies the display to connect to. egl::EGL_DEFAULT_DISPLAY indicates the default display.

[src]

[EGL 1.0] Creates a Display from the default display.

This is a convenience wrapper that calls Display::from_display_id with egl::EGL_DEFAULT_DISPLAY option.

[src]

[EGL 1.0] Initialize this EGL display connection and return EGL version.

eglInitialize initializes the EGL display connection obtained with eglGetDisplay. Initializing an already initialized EGL display connection has no effect besides returning the version numbers.

[src]

[EGL 1.0] Initialize this EGL display connection.

eglInitialize initializes the EGL display connection obtained with eglGetDisplay. Initializing an already initialized EGL display connection has no effect.

[src]

[EGL 1.2] Query EGL_CLIENT_APIS.

Returns a string describing which client rendering APIs are supported. The string contains a space-separate list of API names. The list must include at least one of OpenGL, OpenGL_ES, or OpenVG. These strings correspond respectively to values EGL_OPENGL_API, EGL_OPENGL_ES_API, and EGL_OPENVG_API of the eglBindAPI, api argument.

[src]

[EGL 1.0] Query EGL_VENDOR.

The vendor-specific information is optional; if present, its format and contents are implementation specific.

[src]

[EGL 1.0] Get supported EGL version for this display.

Returns a version or release number. The EGL_VERSION string is laid out as follows:

major_version.minor_version space vendor_specific_info

Both the major and minor portions of the version number are numeric. Their values must match the major and minor values returned by initialize.

[src]

[EGL 1.0] Get the set of display extensions supported by this display.

Returns a space separated list of supported extensions.

[src]

[EGL 1.0] Get all possible display configurations.

Internally, this calls eglGetConfigs twice: to get total config count, and to fill allocated memory with config handles.

These handles are then wrapped into a new Vec<FrameBufferConfigRef>.

[src]

[EGL 1.0] Creates a new config filter for this display for safe invocation of eglChooseConfig.

See documentation of ConfigFilterRef for the list of all available filter methods.

Example

use egli::Display;

let display = Display::from_default_display()
                     .expect("failed to get default display");
let configs = display.config_filter()
                     .with_red_size(8)
                     .choose_configs();

[src]

[EGL 1.0] Create a new EGL window surface.

[src]

[EGL 1.0] Create a new EGL rendering context.

[src]

[EGL 1.3] Create a new EGL rendering context.

[src]

[EGL 1.0] Attach an EGL rendering context to EGL surfaces.

[src]

[EGL 1.0] Detatch an EGL rendering context from EGL surfaces and contexts.

[src]

[EGL 1.0] Post EGL surface color buffer to a native window.

[src]

Run an action with inner handle as parameter.

[src]

Drops Display without cleaning up any resources.

Returns EGLDisplay handle.

Alias for Into<egl::EGLDisplay>.

Trait Implementations

impl Drop for Display
[src]

[src]

Executes the destructor for this type. Read more

impl Into<EGLDisplay> for Display
[src]

[src]

Performs the conversion.