kms_display_set_layout


Description:

public Bool kms_display_set_layout (Display display, int width, int height, KmsCrtc crtcs, int n_crtcs) throws Error

Configures display to use a framebuffer sized width x height, covering the CRTCS in crtcs .

width and height must be within the driver framebuffer limits, and crtcs must be valid KMS API IDs.

Calling this function overrides the automatic mode setting done by Cogl, and for this reason must be called before the first call to swap_buffers.

If you want to restore the default behaviour, you can call this function with width and height set to -1.

Parameters:

width

the framebuffer width

height

the framebuffer height

crtcs

the array of KmsCrtc structure with the desired CRTC layout


Namespace: Cogl
Package: doc