how would you go about adding text to a form that uses directx. Is it a directx function ?
Printable View
how would you go about adding text to a form that uses directx. Is it a directx function ?
D3DX8.DrawText( D3dFont As D3DXFont, Color As Long, TextString As String, RECT As RECT, Format As Long)
Go here:
http://msdn.microsoft.com/library/de...3dxvb_24pu.asp
for the full info
The D3DX font class uses the GDI, and is pretty slow (as well as badly written. Its not meant for use beyond debugging). The usual method for text display is to write a custom font engine, that simply draws pre-transformed vertices with a texture that has each letter of the alphabet on it. This is actually very simple, and can be done in about 3 or 4 hours, at most.
Z.