Sign up ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm looking for a GUI library built on top of DirectX- preferably 9, but I can also do 11. I've looked at stuff like DXUT, but it's way too much for me- I'm only needing some UI controls which I would rather not write (and debug) myself, and their need to keep a C-compatible API is definitely a big downside. I'd rather look at UI libs that are designed to be integrated into an existing DirectX-based system, rather than forming the basis of a system. Any recommendations?


I guess that nobody has heard of a DirectX GUI written by someone who has heard of the basics of object-orientation? The purpose of not using DXUT was because using their API was worse than writing my own, and the documentation that starts with namespace::type::GetInstance() is not qualifying as "better than DXUT".

share|improve this question

closed as too broad by Josh Petrie Sep 30 at 3:31

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

Potential duplicate… – The Communist Duck Feb 18 '11 at 16:23
I believe WFP uses DirectX to render its content. – Nate Feb 18 '11 at 20:15
Not even remotely a duplicate, as I'm rendering with DirectX, not looking for a general-purpose lib. – DeadMG Feb 18 '11 at 21:18
@Nate Bross: If you have a native interface to it, I'm all ears. – DeadMG Feb 18 '11 at 21:39
Totally a duplicate. CEGUI supports both DirectX and OpenGL: DXUT also doesn't look anything remotely like a GUI library, more like a GLUT or GLFW type of thing. – michael.bartnett Nov 8 '11 at 8:23

7 Answers 7


share|improve this answer

In my experience, there's not much available for DirectX, which I think is a great shame. The closest thing I've found is AntTweakBar which (unless you only want the GUI to act as an interface to tweak colours/behaviours/graphics/etc) isn't very fully featured.

Of course I haven't used it very much, so it may have more features to it but check it out at:

share|improve this answer

Check out GWEN from the maker of Garry's Mod.

share|improve this answer
It looks like GWEN is supports OpenGL as well. Mention this on and you may get the bounty. – deft_code Feb 23 '11 at 2:40

MyGUI is very good. It works with DirectX as well as OpenGL and OGRE.

share|improve this answer

I don't know if this will get you what you're looking for, but here's a MSDN document on WPF and Win32 Interoperation. The section "Hosting WPF Content in a Microsoft Win32 Window" may be of the most interest to you. Also, from the first link: Walkthrough: Hosting WPF in Win32.

While I've never done this, it may be able to get you the benifits you're looking for without having to do too much wheel re-inventing.

share|improve this answer

Delphi/ C++Builder with FireMonkey

FireMonkey is a cross platform (opengl for mac and directX for windows) gui library which look similar to native controls as possible.;

share|improve this answer

There is also librocket which allows one to implement the render part by yourself. So you will be able to adapt it to DirectX, wich is already done within one of the examples.

Furthermore it's XHTML1.0 and CSS2.0 based and allows you to build your ui as you would build a websie, with some constraints tho.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.