GUI API for directX? [closed]

假如想象 提交于 2019-12-09 06:55:10

问题


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


回答1:


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...)




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/1633890/gui-api-for-directx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!