Win8 DirectX 11.1 中 Direct3D 和 Direct2D , DirectWrite 的交互比11方便多了,不用创建什么DX10.1的device,不用搞什么设备同步,直接往同一个DXGI Resource里写就是了。
这大概得益于Win 6.2 底层架构的进一步融合,DirectX取得天下指日可待。
前段时间测试功能写了个Demo:
DirectWrite文本绘制艺术字
实现 IDWriteTextRenderer接口,CCustomTextRenderer::DrawGlyphRun 方法,将DWRITE_GLYPH_RUN由CreatePathGeometry 创建 ID2D1PathGeometry。
DrawGeometry描边,FillGeometry填充。
DX11实现,没用DX1.1和D2D1.1的东西,D3D9也能实现,需借助GDIplus
---------------------------
Windows 8 专题