Module cognitive_graphics::egl_tools [] [src]

This module contains common EGL-related tools.

Modules

ext

Module with some constants for extensions.

Structs

EglBucket

This structure collects EGL-related data.

EglContext

This structure is returned by EglBucket::make_current and is used to automatically release EGL context when this structure goes out of the scope.

HwImage

Wrapper for hardware image. Conveying its size and adding ability to send between threads.

Functions

create_image

Creates EGL image from given parameters.

destroy_image

Destroys given EGL image.

get_gbm_display

Gets GBM display.

get_proc_addr_of_create_drm_image_mesa

Returns address of extension function.

get_proc_addr_of_create_image_khr

Returns address of extension function.

get_proc_addr_of_create_platform_surface

Returns address of extension function.

get_proc_addr_of_destroy_image_khr

Returns address of extension function.

get_proc_addr_of_export_drm_image_mesa

Returns address of extension function.

get_proc_addr_of_get_platform_display

Returns address of extension function.

get_proc_addr_of_image_target_render_storage_oes

Returns address of extension function.

get_proc_addr_of_image_target_texture_2d_oes

Returns address of extension function.

has_extension

Returns true if extension is available, false otherwise.

import_dmabuf

Imports dmabuf as EGL image.

Type Definitions

CreateDrmImageMesaFn

Type definition for eglCreateDRMImageMESA function.

CreateImageKhrFn

Type definition for eglCreateImageKHR function.

CreatePlatformSurfaceFn

Type definition for eglGetPlatformDisplayEXT function.

DestroyImageKhrFn

Type definition for eglCreateImageKHR function.

ExportDrmImageFn

Type definition for eglExportDRMImageMESA function.

GetPlatformDisplayFn

Type definition for eglGetPlatformDisplayEXT function.

ImageTargetRenderStorageFn

Type definition for glEGLImageTargetRenderbufferStorageOES function.

ImageTargetTexture2DOesFn

Type definition for glEGLImageTargetTexture2DOES function.

RawHwImage

Raw hardware image.