Flip ID3DXSprite Horizontally

ScHiZo

Newcomer
Joined
Oct 27, 2003
Messages
8
Location
Hawaii
Anyone know how to flip an ID3DXSprite horizontally? I searched through numerous DirectX forums, and I found many variations on how to do it. I tried them all, and I'm still lost. I think it has something to do with the srcRectangle of Sprite.Draw(), though I don't know what to do with it.

If there isn't a native way of doing it, how do you guys flip a sprite in Direct3D? I know you can make flipped sprites (in a graphics program) manually then loaded them in as textures, but that seems like a waste of time and resources.
 
Nevermind, I figured it out myself... For those of you who are interested, you have to use the transform property of the Sprite class. The DirectX 8.1 C/C++ Documentation for ID3DXSprite's Draw() method has more information on this subject.
 
Back
Top