EGL Specific Support

EGL Specific Support — EGL specific API

Functions

EGLDisplay clutter_egl_display ()
EGLDisplay clutter_eglx_display ()
EGLDisplay clutter_egl_get_egl_display ()
void clutter_egl_set_kms_fd ()

Object Hierarchy


Description

The EGL backend for Clutter provides some EGL specific API

You need to include clutter-egl.h to have access to the functions documented here.

Functions

clutter_egl_display ()

EGLDisplay
clutter_egl_display (void);

clutter_egl_display has been deprecated since version 1.6 and should not be used in newly-written code.

Use clutter_egl_get_egl_display() instead

Retrieves the EGLDisplay used by Clutter

Returns

the EGL display

Since 0.6


clutter_eglx_display ()

EGLDisplay
clutter_eglx_display (void);

clutter_eglx_display has been deprecated since version 1.6 and should not be used in newly-written code.

Use clutter_egl_get_egl_display() instead

Retrieves the EGLDisplay used by Clutter, if Clutter has been compiled with EGL and X11 support.

Returns

the EGL display

Since 0.4


clutter_egl_get_egl_display ()

EGLDisplay
clutter_egl_get_egl_display (void);

Retrieves the EGLDisplay used by Clutter.

Returns

the EGL display

Since 1.6


clutter_egl_set_kms_fd ()

void
clutter_egl_set_kms_fd (int fd);

Sets the fd that Cogl should use to talk to the kms driver. Setting this to a negative value effectively reverts this call, making Cogl open the device itself.

This can only be called before clutter_init() is called.

Parameters

fd

The fd to talk to the kms driver with

 

Since 1.18

Types and Values