Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. directX8 draw text

directX8 draw text

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelptutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jason99
    wrote on last edited by
    #1

    Hi, Does anyone know how i can draw text on the client area of a window with the help of directX8? I know how to do it through the GDI, but i want to do it with directX8. Greets, jason

    Z 1 Reply Last reply
    0
    • J jason99

      Hi, Does anyone know how i can draw text on the client area of a window with the help of directX8? I know how to do it through the GDI, but i want to do it with directX8. Greets, jason

      Z Offline
      Z Offline
      ZoogieZork
      wrote on last edited by
      #2

      If you're using Direct3D, you have two choices: the ID3DXFont interface or the CD3DFont class in the SDK framework classes. ID3DXFont actually uses GDI behind the scenes to allow for Unicode characters, but is quite slow as a result. CD3DFont prerenders a set of characters to a texture, which is much faster but limits you to the character set. - Mike

      J 1 Reply Last reply
      0
      • Z ZoogieZork

        If you're using Direct3D, you have two choices: the ID3DXFont interface or the CD3DFont class in the SDK framework classes. ID3DXFont actually uses GDI behind the scenes to allow for Unicode characters, but is quite slow as a result. CD3DFont prerenders a set of characters to a texture, which is much faster but limits you to the character set. - Mike

        J Offline
        J Offline
        jason99
        wrote on last edited by
        #3

        Hi Mike, thanx, that was exactly what i was looking for. One last question: Is it possible to define the font type and the font size in the ID3DXFont interface? greets, Jason

        Z 1 Reply Last reply
        0
        • J jason99

          Hi Mike, thanx, that was exactly what i was looking for. One last question: Is it possible to define the font type and the font size in the ID3DXFont interface? greets, Jason

          Z Offline
          Z Offline
          ZoogieZork
          wrote on last edited by
          #4

          There doesn't appear to be a way to modify the font parameters in ID3DXFont; you need to specify the initial font parameters when you create the font via D3DXCreateFont (when you pass the GDI font handle). - Mike

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups