lv_opengles_private.h API reference for lv_opengles_private.h
Initialize the render parameters with default values
void lv_opengles_render_params_init ( lv_opengles_render_params_t * params ) Parameters
Render the content of the window/framebuffer using OpenGL
void lv_opengles_render ( const lv_opengles_render_params_t * params ) Parameters
Render a texture holding pixels of an LVGL color format, using alternate blending mode. The channel order and the grayscale handling are derived from cf.
void lv_opengles_render_texture_cf ( unsigned int texture , const lv_area_t * texture_area , lv_opa_t opa , int32_t disp_w , int32_t disp_h , const lv_area_t * texture_clip_area , bool h_flip , bool v_flip , lv_color_format_t cf ) Parameters Name Type Description textureunsigned intOpenGL texture ID texture_areaconst lv_area_t *the area in the window to render the texture in opalv_opa_topacity to blend the texture with existing contents disp_wint32_twidth of the window/framebuffer being rendered to disp_hint32_theight of the window/framebuffer being rendered to texture_clip_areaconst lv_area_t *the area of the texture to draw h_flipboolhorizontal flip v_flipboolvertical flip cflv_color_format_tthe LVGL color format the texture was uploaded from
Set the OpenGL viewport, with vertical co-ordinate conversion
void lv_opengles_regular_viewport ( int32_t x , int32_t y , int32_t w , int32_t h ) Parameters Name Type Description xint32_tx position of the viewport yint32_ty position of the viewport wint32_twidth of the viewport hint32_theight of the viewport
void lv_opengles_render_display ( lv_display_t * display , const lv_opengles_render_params_t * params ) Parameters
void lv_opengles_render_texture_internal ( unsigned int texture , const lv_area_t * texture_area , lv_opa_t opa , int32_t disp_w , int32_t disp_h , const lv_area_t * texture_clip_area , bool h_flip , bool v_flip ) Parameters
void lv_opengles_render_display_texture_internal ( lv_display_t * display , bool h_flip , bool v_flip ) Parameters
Upload a pixel buffer into an OpenGL texture
lv_result_t lv_opengles_texture_upload_buf ( unsigned int texture_id , const void * buf , int32_t w , int32_t h , uint32_t stride , lv_color_format_t cf ) Parameters Name Type Description texture_idunsigned intthe OpenGL texture ID to upload into bufconst void *the pixel buffer. May be NULL.. Can be NULL to only define the size and the format wint32_twidth of the buffer in pixels hint32_theight of the buffer in pixels strideuint32_tstride of the buffer in bytes. Ignored when buf is NULL cflv_color_format_tthe LVGL color format of the buffer
Returns: lv_result_t — LV_RESULT_OK on success, LV_RESULT_INVALID if cf has no OpenGL equivalent
Upload the rendered buffer of a display into an OpenGL texture. The size and the color format are taken from the display.
lv_result_t lv_opengles_texture_upload_display_buf ( unsigned int texture_id , lv_display_t * display , const void * buf ) Parameters Name Type Description texture_idunsigned intthe OpenGL texture ID to upload into displaylv_display_t *the display the buffer belongs to bufconst void *the pixel buffer. May be NULL.. Can be NULL to only define the size and the format
Returns: lv_result_t — LV_RESULT_OK on success, LV_RESULT_INVALID if the color format of the display has no OpenGL equivalent
Used by 3 functions
lv_opengles_render_params_init — param params
lv_opengles_render — param params
lv_opengles_render_display — param params
Used by 1 function
lv_opengles_gl_format_from_color_format — param gl_format
#define GL_BGRA GL_BGRA_EXT
#define GL_TEXTURE_MAX_LEVEL GL_TEXTURE_MAX_LEVEL_APPLE
#define GL_UNPACK_ROW_LENGTH GL_UNPACK_ROW_LENGTH_EXT
#define glGenVertexArrays glGenVertexArraysOES
#define glBindVertexArray glBindVertexArrayOES
#define glDeleteVertexArrays glDeleteVertexArraysOES
#define glTexStorage2D glTexStorage2DEXT
#define GL_RGBA32F 0x 8814
#define GL_NUM_EXTENSIONS 0x 821D
#define GL_R8 GL_LUMINANCE
#define GL_RED GL_LUMINANCE
#define LV_GL_PREFERRED_DEPTH GL_DEPTH_COMPONENT16
Includes (4) Included By (4)
lvgl_public.hgles2.hegl.hglfw3.hLast updated on