[SDL] RenderCopyRotate
Gabriel Jacobo
gabomdq at gmail.com
Wed Sep 21 16:13:07 PDT 2011
On Mié 21 Sep 2011 15:08:57 Mason Wheeler escribió:
> This will scale and rotate. We also need flipping (mirroring), which is
> not the same as rotating. I submitted a patch for that a while back.
I'm thinking of turning RenderCopyRotate into a proper RenderCopyEx function:
SDL_RenderCopyEx(SDL_Renderer * renderer,
SDL_Texture * texture,
const SDL_Rect * srcrect,
const SDL_Rect * dstrect,
const double angle,
const SDL_Point *center,
const SDL_ColorMod *colorMod,
const SDL_FlipEnum flip);
Mason, what do you think of a function like that? It should hold most of the
changes requested back when this issue was discussed in the list (end of July
the lastest I know of). Without wanting to go back to the same old arguments,
I'll do this for my own benefit and I'll try to keep it up to date as SDL 1.3
evolves, but if somehow it gets into the main branch at some point even better
yet.
Gabriel.
More information about the SDL
mailing list