lv_opengles_texture.h¶
Functions
-
lv_display_t *lv_opengles_texture_create(int32_t w, int32_t h)¶
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
- Parameters:
w – width in pixels of the texture
h – height in pixels of the texture
- Returns:
the new display or NULL on failure
-
lv_display_t *lv_opengles_texture_create_from_texture_id(int32_t w, int32_t h, unsigned int 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
- Parameters:
w – width in pixels of the texture
h – height in pixels of the texture
texture_id – the texture LVGL will render to
- Returns:
the new display or NULL on failure
-
unsigned int lv_opengles_texture_get_texture_id(lv_display_t *disp)¶
Get the OpenGL texture ID of the display
- Parameters:
disp – display
- Returns:
texture ID
-
lv_display_t *lv_opengles_texture_get_from_texture_id(unsigned int texture_id)¶
Get the display of an OpenGL texture if it is associated with one
- Parameters:
texture_id – OpenGL texture ID
- Returns:
display or
NULL
if there no display with that texture ID