|
-
Apr 24th, 2002, 05:17 PM
#1
Thread Starter
Lively Member
Text in Directx 8
how would you go about adding text to a form that uses directx. Is it a directx function ?
-
Apr 24th, 2002, 05:52 PM
#2
Fanatic Member
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
-
Apr 24th, 2002, 06:05 PM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|