# lv_opengles_glfw.h (/api/drivers/opengles/lv_opengles_glfw_h)



<ApiSummary functions="5" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (2)&#x22;,&#x22;Getters (1)&#x22;,&#x22;Other (2)&#x22;]">
  <ApiTab value="Setters (2)">
    <ApiMember kind="function" name="lv_opengles_glfw_window_set_title" file="drivers/opengles/lv_opengles_glfw.h" line="61" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_glfw.h#L61">
      lv_opengles_glfw_window_set_title [#lv_opengles_glfw_window_set_title]

      Set the window's title text

      ```c title=" " lineNumbers=1
      void lv_opengles_glfw_window_set_title(lv_opengles_window_t *window, const char *new_title)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name        | Type                                                                     | Description              |
      | ----------- | ------------------------------------------------------------------------ | ------------------------ |
      | `window`    | <ApiLink name="lv_opengles_window_t" display="lv_opengles_window_t *" /> | GLFW window to configure |
      | `new_title` | `const char *`                                                           | The new title text       |
    </ApiMember>

    <ApiMember kind="function" name="lv_opengles_glfw_window_set_flip" file="drivers/opengles/lv_opengles_glfw.h" line="69" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_glfw.h#L69">
      lv_opengles_glfw_window_set_flip [#lv_opengles_glfw_window_set_flip]

      Set the horizontal / vertical flipping of a GLFW window

      ```c title=" " lineNumbers=1
      void lv_opengles_glfw_window_set_flip(lv_opengles_window_t *window, bool h_flip, bool v_flip)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name     | Type                                                                     | Description                                          |
      | -------- | ------------------------------------------------------------------------ | ---------------------------------------------------- |
      | `window` | <ApiLink name="lv_opengles_window_t" display="lv_opengles_window_t *" /> | GLFW window to configure                             |
      | `h_flip` | <ApiLink name="bool" />                                                  | Should the window contents be horizontally mirrored? |
      | `v_flip` | <ApiLink name="bool" />                                                  | Should the window contents be vertically mirrored?   |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Getters (1)">
    <ApiMember kind="function" name="lv_opengles_glfw_window_get_glfw_window" file="drivers/opengles/lv_opengles_glfw.h" line="76" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_glfw.h#L76">
      lv_opengles_glfw_window_get_glfw_window [#lv_opengles_glfw_window_get_glfw_window]

      Get the GLFW window handle for a GLFW lv\_opengles\_window\_t

      ```c title=" " lineNumbers=1
      void * lv_opengles_glfw_window_get_glfw_window(lv_opengles_window_t *window)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name     | Type                                                                     | Description                         |
      | -------- | ------------------------------------------------------------------------ | ----------------------------------- |
      | `window` | <ApiLink name="lv_opengles_window_t" display="lv_opengles_window_t *" /> | GLFW window to return the handle of |

      **Returns:** `void *` — the GLFW window handle
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (2)">
    <ApiMember kind="function" name="lv_opengles_glfw_window_create" file="drivers/opengles/lv_opengles_glfw.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_glfw.h#L41">
      lv_opengles_glfw_window_create [#lv_opengles_glfw_window_create]

      Create a GLFW OpenGL window with no textures and initialize OpenGL

      ```c title=" " lineNumbers=1
      lv_opengles_window_t * lv_opengles_glfw_window_create(int32_t hor_res, int32_t ver_res, bool use_mouse_indev)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name              | Type                       | Description                                       |
      | ----------------- | -------------------------- | ------------------------------------------------- |
      | `hor_res`         | <ApiLink name="int32_t" /> | width in pixels of the window                     |
      | `ver_res`         | <ApiLink name="int32_t" /> | height in pixels of the window                    |
      | `use_mouse_indev` | <ApiLink name="bool" />    | send pointer indev input to LVGL display textures |

      **Returns:** <ApiLink name="lv_opengles_window_t" display="lv_opengles_window_t *" /> — the new GLFW OpenGL window handle
    </ApiMember>

    <ApiMember kind="function" name="lv_opengles_glfw_window_create_ex" file="drivers/opengles/lv_opengles_glfw.h" line="53" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_glfw.h#L53">
      lv_opengles_glfw_window_create_ex [#lv_opengles_glfw_window_create_ex]

      Create a GLFW window with no textures and initialize OpenGL

      ```c title=" " lineNumbers=1
      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)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name              | Type                       | Description                                          |
      | ----------------- | -------------------------- | ---------------------------------------------------- |
      | `hor_res`         | <ApiLink name="int32_t" /> | width in pixels of the window                        |
      | `ver_res`         | <ApiLink name="int32_t" /> | height in pixels of the window                       |
      | `use_mouse_indev` | <ApiLink name="bool" />    | send pointer indev input to LVGL display textures    |
      | `h_flip`          | <ApiLink name="bool" />    | Should the window contents be horizontally mirrored? |
      | `v_flip`          | <ApiLink name="bool" />    | Should the window contents be vertically mirrored?   |
      | `title`           | `const char *`             | The window title                                     |

      **Returns:** <ApiLink name="lv_opengles_window_t" display="lv_opengles_window_t *" /> — the new GLFW window handle
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_types.h&#x22;]" includedBy="[&#x22;lv_drivers.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_kconfig.h&#x22;]" />
