Results 1 to 3 of 3

Thread: Text in Directx 8

  1. #1

    Thread Starter
    Lively Member slx47's Avatar
    Join Date
    Apr 2002
    Location
    US
    Posts
    127

    Text in Directx 8

    how would you go about adding text to a form that uses directx. Is it a directx function ?

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    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
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3
    Zaei
    Guest
    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
  •  



Click Here to Expand Forum to Full Width