This project is read-only.

textbatch.drawText to (x,y)

Mar 26, 2011 at 4:52 AM


I am new to Nuclex. I am using GoblinXNA and rendering 3D text using Nuclex. GoblinXNA's 3D text renderer calls textbatch.DrawText(Text text, Matrix transform, Color color). How does DrawText(...) use the text and matrix parameters to determine the (x,y) coordinate of the screen where the text is rendered? I have 3D text rendered on the screen but I also want to draw a rectangle at the same (x,y) coordinate. So if I have the matrix and the text, and obviously Nuclex is capable of rendering the text by mapping it from a 3D to 2D plane, how do I reverse the process and obtain the (x,y) coordinate?

Thanks in advance.