用于 DirectX 的 GUI API? [英] GUI API for directX?

查看:26
本文介绍了用于 DirectX 的 GUI API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了MFC、WIN32、Winforms之外,还有没有可以和DirectX一起使用的GUI API和 WPF?

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

推荐答案

如果您要进行自己的 DirectX 渲染,则可以对公开 HWND 的窗口使用任何 GUI 技术.

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

只需在您想要的任何工具包中使用面板"等效项,并将其句柄 (HWND) 输入 DirectX 以初始化设备.无论您使用 MFC、Windows Forms、WPF、Qt、GTK、FLTK 还是任何其他框架,此技术都是相同的.

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.

只要你能得到窗口的句柄,你就可以做到.使用某些 Microsoft 工具包,它更容易,而且可能更灵活.(例如,使用 D3DImage 使其在 WPF 中无缝...)

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

这篇关于用于 DirectX 的 GUI API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆