lv_draw_opengles.h

API reference for lv_draw_opengles.h

Report on GitHub
Summary

Functions

lv_draw_opengles_init

 
void lv_draw_opengles_init(void)

lv_draw_opengles_deinit

 
void lv_draw_opengles_deinit(void)

lv_draw_opengles_clear_layer_area

Clear a region of the GPU texture that backs the given layer. Needed because lv_draw_buf_clear operates on the CPU draw buffer, which is only a dummy placeholder when the layer is rendered to a GL texture. Without this, a transparent screen background leaves stale pixels on the texture between frames.

 
void lv_draw_opengles_clear_layer_area(lv_layer_t *layer, const lv_area_t *area)
Parameters
NameTypeDescription
layerlv_layer_t *layer whose backing texture must be cleared
areaconst lv_area_t *area (in layer/screen coordinates) to clear

Dependencies

How is this guide?

Last updated on

On this page