directX8 draw text
-
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
If you're using Direct3D, you have two choices: the
ID3DXFont
interface or theCD3DFont
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 -
If you're using Direct3D, you have two choices: the
ID3DXFont
interface or theCD3DFont
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 -
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
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 viaD3DXCreateFont
(when you pass the GDI font handle). - Mike