DirectX DXUT 备用 API
DirectX DXUT alternate API
有人知道 Direct X 是否有替代品 API,我的意思是只是 GUI 库!没有像我们在 DXUT 中那样重新实现 Direct X。
Direct3D 可以安装在任意 Windows window 对象中。您可以使用任何 MFC、WTL、VCL 或 wxWidgets window 通过 window 句柄 (HWND
)(它表示按钮、面板等),并使用它构建任意用户界面。
唯一的限制是必须在 windowed 模式下配置 Direct3D。
对于 Windows Store 和通用 Windows 应用程序 Windows 10,您可以使用 XAML+DirectX 互操作在 Direct3D 表面上获得正确的 GUI。参见 DirectX - Using XAML with DirectX and C++ in Windows Store Apps。
通常 Win32 GUI API 不会在 Direct3D 表面上呈现。这就是 DXUT exist in the first place. There is also a similar solution implemented in ImGui 中 "widgets" 的原因。
许多游戏都使用中间件解决方案,例如 ScaleForm。
有人知道 Direct X 是否有替代品 API,我的意思是只是 GUI 库!没有像我们在 DXUT 中那样重新实现 Direct X。
Direct3D 可以安装在任意 Windows window 对象中。您可以使用任何 MFC、WTL、VCL 或 wxWidgets window 通过 window 句柄 (HWND
)(它表示按钮、面板等),并使用它构建任意用户界面。
唯一的限制是必须在 windowed 模式下配置 Direct3D。
对于 Windows Store 和通用 Windows 应用程序 Windows 10,您可以使用 XAML+DirectX 互操作在 Direct3D 表面上获得正确的 GUI。参见 DirectX - Using XAML with DirectX and C++ in Windows Store Apps。
通常 Win32 GUI API 不会在 Direct3D 表面上呈现。这就是 DXUT exist in the first place. There is also a similar solution implemented in ImGui 中 "widgets" 的原因。
许多游戏都使用中间件解决方案,例如 ScaleForm。