d3d 字体渲染

本文介绍了在Direct3D 11中实现字体渲染的挑战,由于ID3DXFont接口被移除,开发者被引导使用Direct2D和DirectWrite。然而,Direct2D与D3D 11不兼容,需要通过D3D 10.1设备进行间接交互。教程提供了利用这两个API在Direct3D 11中实现字体渲染的方法。
摘要由CSDN通过智能技术生成

I waited for this lesson until we have covered some things that need to be implimented in this lesson, such as blending and textures.

As you may or may not know already, font in direct3d 11 is a pain in the ass to say the least. I don’t know what the developers were thinking exactly, but I believe they have taken out the ID3DXFont interface from direct3d in order to direct people to two new API’s, Direct2D and DirectWrite. However, the worst part about this is that Direct2D is not “interopable” with D3D 11, meaning you can’t use them together directly… (A big thumbs down for microsoft).

So anyway, enough complaining. There are a couple ways we can impliment font into D3D 11, and the one we will be learning about uses the two new API’s microsoft wants us to use, because in fact, they could be very usefull and pretty cool, not to mention flexible (except for the fact we can’t use them directly with a D3D 11 device…). Since we are not able to use them directly with a D3D 11, we will need to use them with a D3D 10.1 device, and swap between the two devices when rendering.

https://www.braynzarsoft.net/viewtutorial/q16390-14-simple-font

DirectX11 With Windows SDK–08 Direct2D与Direct3D互操作性以及利用DWrite显示文字
https://www.cnblogs.com/X-Jun/p/9106518.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值