Fixed bug 3492 - SDL_RenderCopyEx angle direction not documented
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Aug 2017 13:24:18 -0700
changeset 11224aca84e42a924
parent 11223 62db9336e07b
child 11225 10e7bb76a62a
Fixed bug 3492 - SDL_RenderCopyEx angle direction not documented

xyzdragon

Reading https://wiki.libsdl.org/SDL_RenderCopyEx there is no mention what the angle means. Normally in a mathematically environment positive angles translate to counter-clockwise rotations, but in SDL positive angles means clockwise rotation.
include/SDL_render.h
     1.1 --- a/include/SDL_render.h	Fri Aug 11 11:54:24 2017 -0700
     1.2 +++ b/include/SDL_render.h	Fri Aug 11 13:24:18 2017 -0700
     1.3 @@ -819,7 +819,7 @@
     1.4   *                   texture.
     1.5   *  \param dstrect   A pointer to the destination rectangle, or NULL for the
     1.6   *                   entire rendering target.
     1.7 - *  \param angle    An angle in degrees that indicates the rotation that will be applied to dstrect
     1.8 + *  \param angle    An angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction
     1.9   *  \param center   A pointer to a point indicating the point around which dstrect will be rotated (if NULL, rotation will be done around dstrect.w/2, dstrect.h/2).
    1.10   *  \param flip     An SDL_RendererFlip value stating which flipping actions should be performed on the texture
    1.11   *