lv_opengles_egl.h
API reference for lv_opengles_egl.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_opengles_egl_private.h
Summary
Functions
lv_opengles_egl_set_display_color_format
Modifies display color format to ensure the selected color format is opengl compatible else it falls back to LV_COLOR_FORMAT_ARGB8888 and logs a warning.
lv_color_format_t lv_opengles_egl_set_display_color_format(lv_display_t *display)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | the display to check |
Returns: lv_color_format_t — the color format the display uses after the call
lv_opengles_egl_get_gles_version
Get the OpenGL ES major version of the context that was actually created. An ES3 context is always requested first, but drivers that cannot provide one fall back to ES2. Features needing ES3 shaders (e.g. glTF) must check this.
uint8_t lv_opengles_egl_get_gles_version(lv_opengles_egl_t *ctx)| Name | Type | Description |
|---|---|---|
ctx | lv_opengles_egl_t * | the EGL context |
Returns: uint8_t — 3 or 2
lv_opengles_egl_context_create
lv_opengles_egl_t * lv_opengles_egl_context_create(const lv_egl_interface_t *interface)| Name | Type |
|---|---|
interface | const lv_egl_interface_t * |
lv_opengles_egl_color_format_from_egl_config
lv_color_format_t lv_opengles_egl_color_format_from_egl_config(const lv_egl_config_t *config)| Name | Type |
|---|---|
config | const lv_egl_config_t * |
lv_opengles_egl_update
void lv_opengles_egl_update(lv_opengles_egl_t *ctx)| Name | Type |
|---|---|
ctx | lv_opengles_egl_t * |
lv_opengles_egl_clear
void lv_opengles_egl_clear(lv_opengles_egl_t *ctx)| Name | Type |
|---|---|
ctx | lv_opengles_egl_t * |
lv_opengles_egl_context_destroy
void lv_opengles_egl_context_destroy(lv_opengles_egl_t *ctx)| Name | Type |
|---|---|
ctx | lv_opengles_egl_t * |
Typedefs
lv_opengles_egl_t
typedef struct _lv_opengles_egl lv_opengles_egl_tUsed by 4 functions
lv_opengles_egl_get_gles_version— paramctxlv_opengles_egl_update— paramctxlv_opengles_egl_clear— paramctxlv_opengles_egl_context_destroy— paramctx
lv_egl_interface_t
typedef struct _lv_egl_interface lv_egl_interface_tUsed by 1 function
lv_opengles_egl_context_create— paraminterface
lv_egl_config_t
typedef struct _lv_egl_config lv_egl_config_tUsed by 2 functions
lv_opengles_egl_color_format_from_egl_config— paramconfiglv_opengles_egl_display_select_config— paramconfigs
Dependencies
Last updated on