Lining up Text with 3D Objects
Hey, I am currently setting up my GUI(first one ever) in D3d, and I am having trouble lining the text up with my window. In 800 by 600 mode I make a 800 by 600 window flush to the X an Y axis, then, in screen coordinates, tell it to drawText with a corner at (0,0). The text ends up right above the window, like this:
(Cheap Ascii Art)
Text is here
-------------------------------------------------
------------------------------------------------- <---TitleBar
| |
| |
| |
| |
| |
| |
Any way to line this stuff up?
look into D3DXProject() (i think thats what the function was called). it applies your matrices to an object point to convert it to screen space. thus help align text with the window.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement