I'm creating an application overlay via Direct3D hooking, however I can't draw any text. I've started with this sample. The library itself seems to replace all D3D calls with own functions (and in the end it calls the original ones). I've tried all variations of DrawText
without any result visible result. On the other hand, I can draw primitives with DrawPrimitiveUP
. Also, the DrawText(A)
defined in winuser.h only takes 5 arguments and it's completely missing font / color mentioned in all tutorials and forums. Am I doing something wrong?
DrawText(NULL, "text", -1, &rct, DT_NOCLIP|DT_SINGLELINE);
where &rct
is my rectangle created before. I'm calling it directly in a child class of IDirect3DDevice9
.
Thanks in advance