【问题标题】:How to draw lines with a certain amount of thickness如何画出一定粗细的线
【发布时间】:2011-09-10 21:57:06
【问题描述】:

在新的 Direct3D 中绘制不同粗细线的最佳方法是什么?

【问题讨论】:

标签: c++ rendering direct3d direct3d11


【解决方案1】:

使用 Direct3D 11 绘制带图案/粗线(通常是 2D 矢量形状)的最佳方法是使用 Direct2D。使用 DirectX 11.1(Windows 8.x 或 Windows 7 SP1,KB 2670838)在 Direct3D 11 设备上使用 Direct2D 很简单。在此之前,您必须在 Direct3D 10.1 设备上使用 Direct2D,并在 Direct3D 11 设备上使用共享表面(请参阅Surface Sharing Between Windows Graphics APIs

有关 DirectX 11.1 on Windows 7 方案的一些说明,请参阅此post

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-10
    • 2021-08-15
    • 1970-01-01
    • 2017-07-27
    相关资源
    最近更新 更多