lv_opengles_glfw.h

Functions

lv_opengles_window_t *lv_opengles_glfw_window_create(int32_t hor_res, int32_t ver_res, bool use_mouse_indev)

Create a GLFW OpenGL window with no textures and initialize OpenGL

Parameters:
  • hor_res – width in pixels of the window

  • ver_res – height in pixels of the window

  • use_mouse_indev – send pointer indev input to LVGL display textures

Returns:

the new GLFW OpenGL window handle

lv_opengles_window_t *lv_opengles_glfw_window_create_ex(int32_t hor_res, int32_t ver_res, bool use_mouse_indev, bool h_flip, bool v_flip, const char *title)

Create a GLFW window with no textures and initialize OpenGL

Parameters:
  • hor_res – width in pixels of the window

  • ver_res – height in pixels of the window

  • use_mouse_indev – send pointer indev input to LVGL display textures

  • h_flip – Should the window contents be horizontally mirrored?

  • v_flip – Should the window contents be vertically mirrored?

  • title – The window title

Returns:

the new GLFW window handle

void lv_opengles_glfw_window_set_title(lv_opengles_window_t *window, const char *new_title)

Set the window's title text

Parameters:
  • window – GLFW window to configure

  • new_title – The new title text

void lv_opengles_glfw_window_set_flip(lv_opengles_window_t *window, bool h_flip, bool v_flip)

Set the horizontal / vertical flipping of a GLFW window

Parameters:
  • window – GLFW window to configure

  • h_flip – Should the window contents be horizontally mirrored?

  • v_flip – Should the window contents be vertically mirrored?

void *lv_opengles_glfw_window_get_glfw_window(lv_opengles_window_t *window)

Get the GLFW window handle for a GLFW lv_opengles_window_t

Parameters:

window – GLFW window to return the handle of

Returns:

the GLFW window handle