lv_opengles_driver.h
API reference for lv_opengles_driver.h
Summary
Functions
lv_opengles_init
Initialize OpenGL
void lv_opengles_init(void)it is not necessary to call this if you use lv_opengles_glfw_window_create
lv_opengles_deinit
Deinitialize OpenGL
void lv_opengles_deinit(void)it is not necessary to call this if you use lv_opengles_glfw_window_create
lv_opengles_render_texture
Render a texture using alternate blending mode for smoother translucent materials and correct anti-aliasing of glTF elements when using transparent background
void lv_opengles_render_texture(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_render_display_texture
Render a display texture - Supports rotation - Switches red and blue channels
void lv_opengles_render_display_texture(lv_display_t *display, bool h_flip, bool v_flip)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | LVGL Texture display. Created with the lv_opengles_texture module |
h_flip | bool | horizontal flip |
v_flip | bool | vertical flip |
lv_opengles_render_fill
Render a fill
void lv_opengles_render_fill(lv_color_t color, const lv_area_t *area, lv_opa_t opa, int32_t disp_w, int32_t disp_h)| Name | Type | Description |
|---|---|---|
color | lv_color_t | the color of the fill |
area | const lv_area_t * | the area in the window to render the fill |
opa | lv_opa_t | opacity to blend the fill 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 |
lv_opengles_render_clear
Clear the window/display
void lv_opengles_render_clear(void)lv_opengles_viewport
Set the OpenGL viewport
void lv_opengles_viewport(int32_t x, int32_t y, int32_t w, int32_t h)lv_opengles_reinit_state
Reinitialize OpenGL state after external GL operations (e.g., NanoVG) This rebinds VAO, VBO, IBO and resets vertex attributes
void lv_opengles_reinit_state(void)Dependencies
How is this guide?
Last updated on