[SlimDX] Set Position of Text in DirectWrite

Started by
0 comments, last by legalize 14 years, 9 months ago
Hi, I've taken a look to DirectWrite, and it seems to be very powerful but also more difficult to use... The text I'm writing is aligned, but how can I put text at an arbitary Position, is this possible? How can I put for example the framerate in the upper-left corner? Thanks in advance.
Advertisement
You use a transformation matrix, in this case a 3x2 matrix, which allows for rotation and translation.

See ID2D1RenderTarget::SetTransform.

My free book on Direct3D: "The Direct3D Graphics Pipeline"
My blog on programming, vintage computing, music, politics, etc.: Legalize Adulthood!

This topic is closed to new replies.

Advertisement