Kanzi  3.9.5
Kanzi Engine API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
kzs_display_native.hpp File Reference

Functions

bool kzsDisplayNativeIsConnected (struct KzsDisplayNative *displayNative)
 Check if display is connected. More...
 
kzsError kzsDisplayNativeModeSet (struct KzsDisplayNative *displayNative, int fd, int fbId)
 Set the mode for the display. More...
 
kzsError kzsDisplayNativePageFlip (struct KzsDisplayNative *displayNative, int fd, int fbId)
 Schedule a page-flip, swap-buffers should be called prior to this. More...
 
kzsError kzsDisplayNativeRestoreMode (struct KzsDisplayNative *displayNative, int fd)
 Restore original mode of the display. More...
 
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. More...
 

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.