GUI API for directX? [closed]

2019-03-21 20:10发布

Is there any GUI API that can be used together with DirectX other than MFC, WIN32, Winforms and WPF?

3条回答
我只想做你的唯一
2楼-- · 2019-03-21 20:33

Check out CEGUI. It's pretty popular especially for games. And it supports both Direct3d and OpenGL.

查看更多
该账号已被封号
3楼-- · 2019-03-21 20:33

Have a look at XNA. Ultimately WPF or WinForms will be used to get a display surface - can't draw in Windows without a window - but you'll need an additional framework for rendering.

查看更多
做自己的国王
4楼-- · 2019-03-21 20:49

If you're doing your own DirectX rendering, you can use any GUI technology for windows that exposes an HWND.

Just use the "panel" equivelent in whatever toolkit you want, and feed it's handle (HWND) into DirectX to initialize the device. This technique is the same, no matter whether you use MFC, Windows Forms, WPF, Qt, GTK, FLTK, or any other framework.

As long as you can get a handle to the window, you can do it. It's just easier, and potentially more flexible, with some of the Microsoft toolkits. (For example, using D3DImage makes it seamless in WPF...)

查看更多
登录 后发表回答