Functions | |
EGLNativeDisplayType | kzsEGLGetNativeDisplay (const struct KzsDesktopNative *desktopNative, const struct KzsDisplayNative *displayNative, const struct KzsWindowNative *windowNative) |
kzsError | kzsDisplayNativePageFlip (struct KzsDisplayNative *displayNative, int fd, int fbId) |
Schedule a page-flip, swap-buffers should be called prior to this. More... | |
kzsError | kzsDisplayNativePageFlipInvoke (struct KzsDisplayNative *displayNative, int fd, int fbId) |
Queues to page flip to happen on next vblank. More... | |
kzsError | kzsDisplayNativePageFlipWait (struct KzsDisplayNative *displayNative, int fd) |
Waits for vblank signal that is sent on page flip. More... | |
kzsError | kzsDisplayNativeModeSet (struct KzsDisplayNative *displayNative, int fd, int fbId) |
Set the mode for the display. More... | |
kzsError | kzsDisplayNativeRestoreMode (struct KzsDisplayNative *displayNative, int fd) |
Restore original mode of the display. More... | |
bool | kzsDisplayNativeIsConnected (struct KzsDisplayNative *displayNative) |
Check if display is connected. More... | |
EGLNativeDisplayType kzsEGLGetNativeDisplay | ( | const struct KzsDesktopNative * | desktopNative, |
const struct KzsDisplayNative * | displayNative, | ||
const struct KzsWindowNative * | windowNative | ||
) |
kzsError kzsDisplayNativePageFlip | ( | struct KzsDisplayNative * | displayNative, |
int | fd, | ||
int | fbId | ||
) |
Schedule a page-flip, swap-buffers should be called prior to this.
This function internally first schedules a page flip with kzsDisplayNativePageFlipInvoke(), then waits for the synchronization using kzsDisplayNativePageFlipWait().
displayNative | Handle to display-native. |
fd | File handle to drm device or control-device. |
fbId | Handle to the framebuffer. |
kzsError kzsDisplayNativePageFlipInvoke | ( | struct KzsDisplayNative * | displayNative, |
int | fd, | ||
int | fbId | ||
) |
Queues to page flip to happen on next vblank.
displayNative | Handle to display-native. |
fd | File handle to drm device or control-device. |
fbId | Handle to the framebuffer. |
kzsError kzsDisplayNativePageFlipWait | ( | struct KzsDisplayNative * | displayNative, |
int | fd | ||
) |
Waits for vblank signal that is sent on page flip.
Must be called from the same thread as kzsDisplayNativePageFlipInvoke().
displayNative | Handle to display-native. |
fd | File handle to drm device or control-device. |
kzsError kzsDisplayNativeModeSet | ( | struct KzsDisplayNative * | displayNative, |
int | fd, | ||
int | fbId | ||
) |
Set the mode for the display.
displayNative | Handle to display-native. |
fd | File handle to drm device or control-device. |
fbId | Handle to the framebuffer. |
kzsError kzsDisplayNativeRestoreMode | ( | struct KzsDisplayNative * | displayNative, |
int | fd | ||
) |
Restore original mode of the display.
displayNative | Handle to display-native. |
fd | File handle to drm device or control-device. |
fbId | Handle to the framebuffer. |
bool kzsDisplayNativeIsConnected | ( | struct KzsDisplayNative * | displayNative | ) |
Check if display is connected.
displayNative | Handle to display-native. |