lv_opengles_private.h
API reference for lv_opengles_private.h
Summary
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)| Name | Type | Description |
|---|---|---|
params | lv_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)| Name | Type | Description |
|---|---|---|
params | const 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)| Name | Type | Description |
|---|---|---|
texture | unsigned int | OpenGL texture ID |
texture_area | const lv_area_t * | the area in the window to render the texture in |
opa | lv_opa_t | opacity to blend the texture with existing contents |
disp_w | int32_t | width of the window/framebuffer being rendered to |
disp_h | int32_t | height of the window/framebuffer being rendered to |
texture_clip_area | const lv_area_t * | |
h_flip | bool | horizontal flip |
v_flip | bool | vertical 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)lv_opengles_render_display
void lv_opengles_render_display(lv_display_t *display, const lv_opengles_render_params_t *params)| Name | Type |
|---|---|
display | lv_display_t * |
params | const lv_opengles_render_params_t * |
Structs
struct
lv_opengles_render_params_t
| Member | Type | Description |
|---|---|---|
texture | unsigned int | |
texture_area | const lv_area_t * | |
opa | lv_opa_t | |
disp_w | int32_t | |
disp_h | int32_t | |
texture_clip_area | const lv_area_t * | |
h_flip | bool | |
v_flip | bool | |
rb_swap | bool | |
fill_color | lv_color_t | |
blend_opt | bool | |
matrix | const lv_matrix_t * |
Used by 3 functions
lv_opengles_render_params_init— paramparamslv_opengles_render— paramparamslv_opengles_render_display— paramparams
Macros
GL_BGRA
#define GL_BGRA GL_BGRA_EXTGL_TEXTURE_MAX_LEVEL
#define GL_TEXTURE_MAX_LEVEL GL_TEXTURE_MAX_LEVEL_APPLEGL_UNPACK_ROW_LENGTH
#define GL_UNPACK_ROW_LENGTH GL_UNPACK_ROW_LENGTH_EXTglGenVertexArrays
#define glGenVertexArrays glGenVertexArraysOESglBindVertexArray
#define glBindVertexArray glBindVertexArrayOESglDeleteVertexArrays
#define glDeleteVertexArrays glDeleteVertexArraysOESglTexStorage2D
#define glTexStorage2D glTexStorage2DEXTGL_RGBA32F
#define GL_RGBA32F 0x8814GL_NUM_EXTENSIONS
#define GL_NUM_EXTENSIONS 0x821DGL_RGB8
#define GL_RGB8 0x8051GL_RGBA8
#define GL_RGBA8 0x8058LV_GL_PREFERRED_DEPTH
#define LV_GL_PREFERRED_DEPTH GL_DEPTH_COMPONENT16Dependencies
How is this guide?
Last updated on