lv_nanovg_fbo_cache.h¶
Functions
-
void lv_nanovg_fbo_cache_init(struct _lv_draw_nanovg_unit_t *u)¶
Initialize the FBO cache.
- Parameters:
u – pointer to the nanovg unit
-
void lv_nanovg_fbo_cache_deinit(struct _lv_draw_nanovg_unit_t *u)¶
Deinitialize the FBO cache.
- Parameters:
u – pointer to the nanovg unit
-
struct _lv_cache_entry_t *lv_nanovg_fbo_cache_get(struct _lv_draw_nanovg_unit_t *u, int width, int height, int flags, int format)¶
Get the FBO from the cache, create a new one if not found.
- Parameters:
u – pointer to the nanovg unit
width – the width of the FBO
height – the height of the FBO
flags – the FBO flags
format – the texture format
- Returns:
the FBO cache entry, or NULL if not found
-
void lv_nanovg_fbo_cache_release(struct _lv_draw_nanovg_unit_t *u, struct _lv_cache_entry_t *entry)¶
Release the FBO from the cache.
- Parameters:
u – pointer to the nanovg unit
entry – the FBO cache entry to release
-
struct NVGLUframebuffer *lv_nanovg_fbo_cache_entry_to_fb(struct _lv_cache_entry_t *entry)¶
Convert a cache entry to a framebuffer.
- Parameters:
entry – the FBO cache entry
- Returns:
the framebuffer pointer