ScHiZo Posted January 26, 2004 Posted January 26, 2004 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. Quote
ScHiZo Posted January 28, 2004 Author Posted January 28, 2004 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.