Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...