microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.58k stars 511 forks source link

Where is D3DXCreateText function? #228

Open Say-Y opened 4 years ago

Say-Y commented 4 years ago

I want to manage Text as a 3D model. (Not sprite font) Where is D3DXCreateText ?

shawnhar commented 4 years ago

DirectXTK does not provide any such functionality, but you could implement it using these Win2D APIs:

http://microsoft.github.io/Win2D/html/M_Microsoft_Graphics_Canvas_Geometry_CanvasGeometry_CreateText.htm

http://microsoft.github.io/Win2D/html/M_Microsoft_Graphics_Canvas_Geometry_CanvasGeometry_SendPathTo.htm

walbourn commented 4 years ago

I'll keep this issue open as a feature request. Looking at the D3DX source it's a few thousand lines of code, so it's a bit complicated.

walbourn commented 1 year ago
HRESULT WINAPI
    D3DXCreateTextW(
        LPDIRECT3DDEVICE9   pDevice,
        HDC                 hDC,
        LPCWSTR             pText,
        FLOAT               Deviation,
        FLOAT               Extrusion,
        LPD3DXMESH*         ppMesh,
        LPD3DXBUFFER*       ppAdjacency,
        LPGLYPHMETRICSFLOAT pGlyphMetrics);