# If I can use GLFW to develop a game engine UI and how

**URL:** <https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159>\
**Category:** support\
**Created:** [August 25, 2018, 10:17am UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159 "2018-08-25T10:17:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsonvoew](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@lsonvoew](https://discourse.glfw.org/u/lsonvoew)\
**Post date:** [August 25, 2018, 10:17am UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159/1 "2018-08-25T10:17:28Z")

</div>

how to design a beautiful game engine UI using GLFW

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [August 25, 2018, 11:01am UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159/2 "2018-08-25T11:01:34Z")

</div>

The best thing to start with is to take a look at the current UI libraries which build on top of GLFW, for example:

1. [dear imgui](https://github.com/ocornut/imgui) is probably the widest used library for this sort of thing. Though aimed at fast debug style UI it’s been used for lots of game editor UIs, take a look at the [examples on the releases page](https://github.com/ocornut/imgui/releases).
2. [NanoVG](https://github.com/memononen/nanovg) is a slower but more capable 2D vector graphcis library which can be used to build UIs with, though it has no input or layout handling so you need to make that yourseflf.
3. [NanoGUI is build using NanoVG](https://github.com/wjakob/nanogui) and offers a simple set of UI basics.
4. [Nuklear](https://github.com/vurtun/nuklear) is a minimal ANSI C UI library inspired by dear imgui.

---

<div class="post-metadata">

**Author:** ![lsonvoew](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@lsonvoew](https://discourse.glfw.org/u/lsonvoew)\
**Post date:** [August 25, 2018, 11:33am UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159/3 "2018-08-25T11:33:44Z")

</div>

thank you for your reply,and I want to design a editor,I want to use QT as my editor,.Does QT and GLFW can use together?

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [August 25, 2018, 1:09pm UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159/4 "2018-08-25T13:09:59Z")

</div>

Qt provides it’s own [OpenGL context solution](http://doc.qt.io/qt-5/qtgui-index.html) so you do not have to use GLFW to create and manage your window and inputs.

There is an open outstanding issue being worked on to allow [GLFW to work with existing window handles](https://github.com/glfw/glfw/issues/25), but until this is finished it would be difficult to use Qt and GLFW together in the same window.

---

<div class="post-metadata">

**Author:** ![lsonvoew](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@lsonvoew](https://discourse.glfw.org/u/lsonvoew)\
**Post date:** [August 25, 2018, 1:48pm UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159/5 "2018-08-25T13:48:43Z")

</div>

thank you for your reply

---

<div class="post-metadata">

**Author:** ![lsonvoew](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@lsonvoew](https://discourse.glfw.org/u/lsonvoew)\
**Post date:** [August 25, 2018, 1:49pm UTC](https://discourse.glfw.org/t/if-i-can-use-glfw-to-develop-a-game-engine-ui-and-how/1159/6 "2018-08-25T13:49:18Z")

</div>

I have known how to do it
