Reputation: 226
Does anybody know if there are some alternate API for Direct X, i mean just GUI library ! without Direct X re-implementation like we had in DXUT.
Upvotes: 2
Views: 341
Reputation: 3373
Direct3D can be mounted in arbitrary Windows window object. You can use any MFC, WTL, VCL or wxWidgets window through window handle (HWND
) (it means button, panel, and more), and build with it arbitrary user interfaces.
The only restriction Direct3D must be configured in a windowed mode.
Upvotes: 0
Reputation: 41127
For Windows Store and universal Windows apps on Windows 10, you can use XAML+DirectX interop to get right GUI on top of a Direct3D surface. See DirectX - Using XAML with DirectX and C++ in Windows Store Apps.
In general Win32 GUI APIs do not render on Direct3D surfaces. That is why the "widgets" in DXUT exist in the first place. There is also a similar solution implemented in ImGui.
Many games make use of middleware solutions like ScaleForm.
Upvotes: 1