Announcement

Collapse
No announcement yet.

DirectX text programming

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    DirectX text programming

    Currently writing a 3D demo in DX9 and need a way to display debug info from my code onto the screen but I don't know how to deal with text through Direct3D. Was wondering if anyone knows how to do this or have a console window alongside a Window(where I could just dump cout statements as the code runs)?

    #2
    Either cout any logging info to a file or write a small console class yourself... or both...

    For the console you should have a buffer of text that you can render to a texture and display in 2d projection after drawing the scene. any nice alpha blending and transparencies are a bonus.

    Comment


      #3
      Have a look in the documents for the font class in the D3DX helper classes if you just want simple debug text on the screen IMO.

      Comment


        #4
        Heh, can you tell that I come from developing with OpenGL where it's all low-level and if you wanted fonts, or well... pretty much anything, you needed to do it yourself (or use someone else's code)?

        Comment

        Working...
        X