Kanzi 3.9.10
kzs_display_native.hpp File Reference

Functions

bool kzsDisplayNativeIsConnected (struct KzsDisplayNative *displayNative)
 Check if display is connected.
 
kzsError kzsDisplayNativeModeSet (struct KzsDisplayNative *displayNative, int fd, int fbId)
 Set the mode for the display.
 
kzsError kzsDisplayNativePageFlip (struct KzsDisplayNative *displayNative, int fd, int fbId)
 Schedule a page-flip, swap-buffers should be called prior to this.
 
kzsError kzsDisplayNativeRestoreMode (struct KzsDisplayNative *displayNative, int fd)
 Restore original mode of the display.
 
EGLNativeDisplayType kzsEGLGetNativeDisplay (const struct KzsDesktopNative *desktopNative, const struct KzsDisplayNative *displayNative, const struct KzsWindowNative *windowNative)
 
void kzsWaitForVsync (struct KzsDisplayNative *displayNative, int fd)
 Waits for a VSYNC signal.
 

Function Documentation

◆ kzsEGLGetNativeDisplay()

EGLNativeDisplayType kzsEGLGetNativeDisplay ( const struct KzsDesktopNative * desktopNative,
const struct KzsDisplayNative * displayNative,
const struct KzsWindowNative * windowNative )

◆ kzsDisplayNativePageFlip()

kzsError kzsDisplayNativePageFlip ( struct KzsDisplayNative * displayNative,
int fd,
int fbId )

Schedule a page-flip, swap-buffers should be called prior to this.

Parameters
displayNativeHandle to display-native.
fdFile handle to drm device or control-device.
fbIdHandle to the framebuffer.
Returns
KZS_SUCCESS on success.

◆ kzsWaitForVsync()

void kzsWaitForVsync ( struct KzsDisplayNative * displayNative,
int fd )

Waits for a VSYNC signal.

Parameters
displayNativeHandle to display-native.
fdFile handle to drm device or control-device.

◆ kzsDisplayNativeModeSet()

kzsError kzsDisplayNativeModeSet ( struct KzsDisplayNative * displayNative,
int fd,
int fbId )

Set the mode for the display.

Parameters
displayNativeHandle to display-native.
fdFile handle to drm device or control-device.
fbIdHandle to the framebuffer.
Returns
KZS_SUCCESS on success.

◆ kzsDisplayNativeRestoreMode()

kzsError kzsDisplayNativeRestoreMode ( struct KzsDisplayNative * displayNative,
int fd )

Restore original mode of the display.

Parameters
displayNativeHandle to display-native.
fdFile handle to drm device or control-device.
Returns
KZS_SUCCESS on success.

◆ kzsDisplayNativeIsConnected()

bool kzsDisplayNativeIsConnected ( struct KzsDisplayNative * displayNative)

Check if display is connected.

Parameters
displayNativeHandle to display-native.
Returns
true if display connected and usable, otherwise false.