Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow flipped source coordinates in Surface.drawImage() #41

Open
GoogleCodeExporter opened this issue Mar 27, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

The sprite-rendering code in https://github.com/joelgwebber/xna-platformer 
takes advantage of flipping source coordinates in Surface.drawImage() to flip 
sprites horizontally. This works in Java2D and GL, but fails in <canvas>, where 
it's explicitly disallowed.

We should assert that source coordinates are in the correct order so that all 
platforms will be consistent. We also need a way to render flipped sprites, 
though the easiest thing to do there might simply be to invert the scale (see 
issue 32 for more on that).

Original issue reported on code.google.com by joelgwebber on 7 Jun 2011 at 1:29

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 7 Jun 2011 at 1:33

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant