lv_opengles_window.h

Functions

void lv_opengles_window_delete(lv_opengles_window_t *window)

Delete an OpenGL window. If it is the last one, the process will exit

Parameters:

window – OpenGL window to delete

lv_opengles_window_texture_t *lv_opengles_window_add_texture(lv_opengles_window_t *window, unsigned int texture_id, int32_t w, int32_t h)

Add a texture to the OpenGL window. It can be an LVGL display texture, or any OpenGL texture

Parameters:
  • window – OpenGL window

  • texture_id – OpenGL texture ID

  • w – width in pixels of the texture

  • h – height in pixels of the texture

Returns:

the new texture handle

lv_display_t *lv_opengles_window_display_create(lv_opengles_window_t *window, int32_t w, int32_t h)
lv_opengles_window_texture_t *lv_opengles_window_display_get_window_texture(lv_display_t *window_display)
void lv_opengles_window_texture_remove(lv_opengles_window_texture_t *texture)

Remove a texture from its OpenGL window and delete it

Parameters:

texture – handle of an OpenGL window texture

void lv_opengles_window_texture_set_x(lv_opengles_window_texture_t *texture, int32_t x)

Set the x position of a texture within its OpenGL window

Parameters:
  • texture – handle of an OpenGL window texture

  • x – new x position of the texture

void lv_opengles_window_texture_set_y(lv_opengles_window_texture_t *texture, int32_t y)

Set the y position of a texture within its OpenGL window

Parameters:
  • texture – handle of an OpenGL window texture

  • y – new y position of the texture

void lv_opengles_window_texture_set_opa(lv_opengles_window_texture_t *texture, lv_opa_t opa)

Set the opacity of a texture in an OpenGL window

Parameters:
  • texture – handle of an OpenGL window texture

  • opa – new opacity of the texture

lv_indev_t *lv_opengles_window_texture_get_mouse_indev(lv_opengles_window_texture_t *texture)

Get the mouse indev associated with a texture in an OpenGL window, if it exists

Note

there will only be an indev if the texture is based on an LVGL display texture and the window was created with use_mouse_indev as true

Parameters:

texture – handle of an OpenGL window texture

Returns:

the indev or NULL