d3d中可以在场景中直接渲染文本:
步骤很简单, 如下:
1. 定义ID3DXFont接口
ID3DXFont *m_pFPSFont;
2. 创建实例
LOGFONTW lf = { 0 };
lf.lfHeight = 20;
lf.lfWeight = 12;
lf.lfWeight = 400;
lf.lfItalic = false;
lf.lfUnderline = false;
lf.lfStrikeOut… 更多... “D3D 文本”