Kanzi 4.0.0-beta2
kzs_egl.h File Reference
#include <kanzi/core/cpp/platform.hpp>
#include <kanzi/core/error/legacy_error.hpp>
#include <kanzi/platform/kz_platform_api.hpp>
#include <EGL/egl.h>
#include <EGL/eglext.h>

Functions

EGLImageKHR kzsEGLCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
 
EGLBoolean kzsEGLDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image)
 
KZ_NO_DISCARD kzString kzsEGLErrorString (EGLint error)
 Returns a string representation of a given EGL error code.
 
kzsError kzsNativeWindowSystemInitialize_EGL ()
 Initializes internal EGL function pointers.
 

Function Documentation

◆ kzsEGLCreateImageKHR()

EGLImageKHR kzsEGLCreateImageKHR ( EGLDisplay dpy,
EGLContext ctx,
EGLenum target,
EGLClientBuffer buffer,
const EGLint * attrib_list )

◆ kzsEGLDestroyImageKHR()

EGLBoolean kzsEGLDestroyImageKHR ( EGLDisplay dpy,
EGLImageKHR image )

◆ kzsNativeWindowSystemInitialize_EGL()

kzsError kzsNativeWindowSystemInitialize_EGL ( )

Initializes internal EGL function pointers.

Return values
KZS_SUCCESSThe function pointers were successfully initialized.
KZS_ERROR_FILE_OPERATION_FAILEDDynamic loading of the EGL library failed.

◆ kzsEGLErrorString()

KZ_NO_DISCARD kzString kzsEGLErrorString ( EGLint error)

Returns a string representation of a given EGL error code.

The error codes are enumerated in EGL/egl.h.

Parameters
errorAn error code.
Returns
A (static) string representation of the specific error followed by a short explanation. If Kanzi does not recognize the error code, returns "Unknown EGL error.".
Since
Kanzi 4.0.0