lv_opengles_texture.h
API reference for lv_opengles_texture.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_opengles_texture_private.h
Summary
Functions
lv_opengles_texture_get_texture_id
Get the OpenGL texture ID of the display
unsigned int lv_opengles_texture_get_texture_id(lv_display_t *disp)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | display |
Returns: unsigned int — texture ID
lv_opengles_texture_get_from_texture_id
Get the display of an OpenGL texture if it is associated with one
lv_display_t * lv_opengles_texture_get_from_texture_id(unsigned int texture_id)| Name | Type | Description |
|---|---|---|
texture_id | unsigned int | OpenGL texture ID |
Returns: lv_display_t * — display or NULL if there no display with that texture ID
lv_opengles_texture_create
Create a display that flushes to an OpenGL texture If you already have a texture and want to bind it to the display, see lv_opengles_texture_create_from_texture_id
lv_display_t * lv_opengles_texture_create(int32_t w, int32_t h)| Name | Type | Description |
|---|---|---|
w | int32_t | width in pixels of the texture |
h | int32_t | height in pixels of the texture |
Returns: lv_display_t * — the new display or NULL on failure
lv_opengles_texture_create_from_texture_id
Create a display that flushes to the provided OpenGL texture If you don't have a texture to bind it to the display, see lv_opengles_texture_create
lv_display_t * lv_opengles_texture_create_from_texture_id(int32_t w, int32_t h, unsigned int texture_id)| Name | Type | Description |
|---|---|---|
w | int32_t | width in pixels of the texture |
h | int32_t | height in pixels of the texture |
texture_id | unsigned int | the texture LVGL will render to |
Returns: lv_display_t * — the new display or NULL on failure
Dependencies
Last updated on