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

Support saving flipped textures in SDL2 #5262

Closed
kamathln opened this issue Jul 7, 2017 · 5 comments
Closed

Support saving flipped textures in SDL2 #5262

kamathln opened this issue Jul 7, 2017 · 5 comments

Comments

@kamathln
Copy link

kamathln commented Jul 7, 2017

Basic tutorial, could probably be optimized for speed by copying the image one row at a time to the new surface.
http://lazyfoo.net/SDL_tutorials/lesson31/index.php

@dessant
Copy link
Contributor

dessant commented Jul 7, 2017

It is already supported and should work regardless of the providers being used.

https://kivy.org/docs/api-kivy.graphics.texture.html?highlight=flip#kivy.graphics.texture.Texture.flip_horizontal

@dessant dessant closed this as completed Jul 7, 2017
@kamathln
Copy link
Author

kamathln commented Jul 8, 2017

under SDL2 ? Since which version?

@dessant
Copy link
Contributor

dessant commented Jul 8, 2017

Ah, you're right, it is not documented either.
#4300

@KeyWeeUsr
Copy link
Contributor

@kamathln Please try the linked PR if it works for you.

@kamathln
Copy link
Author

👍 Thanks! It works!

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

No branches or pull requests

3 participants