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

参数:
  • w -- width in pixels of the texture

  • h -- height in pixels of the texture

返回:

the new display

unsigned int lv_opengles_texture_get_texture_id(lv_display_t *disp)

Get the OpenGL texture ID of the display

参数:

disp -- display

返回:

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

参数:

texture_id -- OpenGL texture ID

返回:

display or NULL if there no display with that texture ID