lv_opengles_private.h

API reference for lv_opengles_private.h

Report on GitHub

Functions

lv_opengles_render_params_init

Initialize the render parameters with default values

 
void lv_opengles_render_params_init(lv_opengles_render_params_t *params)
Parameters
NameTypeDescription
paramslv_opengles_render_params_t *pointer to an initialized lv_opengles_render_params_t struct

lv_opengles_render

Render the content of the window/framebuffer using OpenGL

 
void lv_opengles_render(const lv_opengles_render_params_t *params)
Parameters
NameTypeDescription
paramsconst lv_opengles_render_params_t *pointer to an initialized lv_opengles_render_params_t struct

lv_opengles_render_texture_rbswap

Render a texture using alternate blending mode, with red and blue channels flipped in the shader.

 
void lv_opengles_render_texture_rbswap(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
NameTypeDescription
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 *
h_flipboolhorizontal flip
v_flipboolvertical flip

lv_opengles_regular_viewport

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
NameTypeDescription
xint32_tx position of the viewport
yint32_ty position of the viewport
wint32_twidth of the viewport
hint32_theight of the viewport

lv_opengles_render_display

 
void lv_opengles_render_display(lv_display_t *display, const lv_opengles_render_params_t *params)
Parameters

Structs

struct

lv_opengles_render_params_t

MemberTypeDescription
textureunsigned int
texture_areaconst lv_area_t *
opalv_opa_t
disp_wint32_t
disp_hint32_t
texture_clip_areaconst lv_area_t *
h_flipbool
v_flipbool
rb_swapbool
fill_colorlv_color_t
blend_optbool
matrixconst lv_matrix_t *
Used by 3 functions
  • lv_opengles_render_params_init — param params
  • lv_opengles_render — param params
  • lv_opengles_render_display — param params

Macros

GL_BGRA

 
#define GL_BGRA GL_BGRA_EXT

GL_TEXTURE_MAX_LEVEL

 
#define GL_TEXTURE_MAX_LEVEL GL_TEXTURE_MAX_LEVEL_APPLE

GL_UNPACK_ROW_LENGTH

 
#define GL_UNPACK_ROW_LENGTH GL_UNPACK_ROW_LENGTH_EXT

glGenVertexArrays

 
#define glGenVertexArrays glGenVertexArraysOES

glBindVertexArray

 
#define glBindVertexArray glBindVertexArrayOES

glDeleteVertexArrays

 
#define glDeleteVertexArrays glDeleteVertexArraysOES

glTexStorage2D

 
#define glTexStorage2D glTexStorage2DEXT

GL_RGBA32F

 
#define GL_RGBA32F 0x8814

GL_NUM_EXTENSIONS

 
#define GL_NUM_EXTENSIONS 0x821D

GL_RGB8

 
#define GL_RGB8 0x8051

GL_RGBA8

 
#define GL_RGBA8 0x8058

LV_GL_PREFERRED_DEPTH

 
#define LV_GL_PREFERRED_DEPTH GL_DEPTH_COMPONENT16

Dependencies

How is this guide?

Last updated on

On this page