Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 716
  • Last Modified:

Horizontally flipped sprite

How do i blit a horizontally flipped sprite in managed directX?  An answer in unmanaged directx would help too.
0
davidastle
Asked:
davidastle
  • 2
1 Solution
 
str_ekCommented:
http://blogs.msdn.com/tmiller/archive/2004/02/05/68347.aspx

and find "flip"

and i agree. as far as i know there is no eazy way to simply blit a flipped sprite ... the way is by haveing it as a poly you texture and swap texture coords.. (like a billborad), but it takes some extra brain damage to make it that way ( hey.. wher is that old cool ddraw7 ;))
0
 
davidastleAuthor Commented:
Yah, i wrote my own flip fnction that returns a flipped texture.  Bah!  There is no better way?  grr!
0
 
str_ekCommented:
afak no....  but once again i anvocate to forget blitting, and simply draw a textured poly :) it's eazier to maintain(well sometimes, with not muchobjects to trace alfa nad hence not wide deapth differences between layers, so there wont be glithes) and if you take planing in your own hands it works just fine... the only prob is to find/calulate te exact correct projection matrix, so it look flat;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now