Microsoft DirectX 8.1 (C++) |
The ID3DXFont interface is used to encapsulate the textures and resources needed to render a specific font on a specific device.
The ID3DXFont interface is obtained by calling the D3DXCreateFont or D3DXCreateFontIndirect functions. The methods of the ID3DXFont interface can be organized into the following groups.
Drawing | Begin |
DrawText | |
End | |
Information | GetDevice |
GetLogFont | |
Miscellaneous | OnLostDevice |
OnResetDevice |
The ID3DXFont interface, like all COM interfaces, inherits from the IUnknown Interface.
The LPD3DXFONT type is defined as a pointer to the ID3DXFont interface.
typedef interface ID3DXFont *LPD3DXFONT;
Header: Declared in D3dx8core.h.
Import Library: Use D3dx8.lib.