Rotating a blitted image

sputnik

Addon Developer
Addon Developer
Donator
Joined
Apr 3, 2008
Messages
425
Reaction score
3
Points
33
Location
Palmdale
Website
www.worldof2001.com
I'm trying to make use of the DeltaGlider's function adding a text name to the vessel texture. But, unfortunately, I didn't make my textures work nicely, reading left-to-right and so on.
I'm sure there's an easy way to fix this, but it doesn't seem possible to use TextOut to add text at an angle (or is it?)
So I was thinking I could put the text down and then rotate the entire image, but I can't figure out how to do that either.

Can anyone point me down the right path?
 
If I remember correctly, you can define the angle in the font properties, when you call CreateFont.
 
Thanks, Urwumpe!

You can, and I tried it, a while back, and failed. Turned out I was fooling with the fourth parameter, nOrientation. I needed to tweak the third, nEscapement, which I only tried now because I knew you wouldn't steer me wrong.

So...painted-on shuttle names for Starclipper v1.1!


It's a pity, though, that my Intel graphics driver mistakenly displays all added fonts transparent...even the DeltaGlider's. In windowed mode. In full-screen mode, it works fine, but I don't like working in full-screen mode.
 
Back
Top