lv_nanovg_fbo_cache.h
API reference for lv_nanovg_fbo_cache.h
Summary
Functions
lv_nanovg_fbo_cache_get
Get the FBO from the cache, create a new one if not found.
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)| Name | Type | Description |
|---|---|---|
u | struct _lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
width | int | the width of the FBO |
height | int | the height of the FBO |
flags | int | the FBO flags |
format | int | the texture format |
Returns: struct _lv_cache_entry_t * — the FBO cache entry, or NULL if not found
lv_nanovg_fbo_cache_init
Initialize the FBO cache.
void lv_nanovg_fbo_cache_init(struct _lv_draw_nanovg_unit_t *u)| Name | Type | Description |
|---|---|---|
u | struct _lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
lv_nanovg_fbo_cache_deinit
Deinitialize the FBO cache.
void lv_nanovg_fbo_cache_deinit(struct _lv_draw_nanovg_unit_t *u)| Name | Type | Description |
|---|---|---|
u | struct _lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
lv_nanovg_fbo_cache_release
Release the FBO from the cache.
void lv_nanovg_fbo_cache_release(struct _lv_draw_nanovg_unit_t *u, struct _lv_cache_entry_t *entry)| Name | Type | Description |
|---|---|---|
u | struct _lv_draw_nanovg_unit_t * | pointer to the nanovg unit |
entry | struct _lv_cache_entry_t * | the FBO cache entry to release |
lv_nanovg_fbo_cache_entry_to_fb
Convert a cache entry to a framebuffer.
struct NVGLUframebuffer * lv_nanovg_fbo_cache_entry_to_fb(struct _lv_cache_entry_t *entry)| Name | Type | Description |
|---|---|---|
entry | struct _lv_cache_entry_t * | the FBO cache entry |
Returns: struct NVGLUframebuffer * — the framebuffer pointer
Dependencies
lvgl_public.h
Last updated on