Skip to content
Permalink
Browse files

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.
  • Loading branch information
slouken committed Aug 11, 2017
1 parent 6de66e9 commit b3589ed6a64989e767851a72f066925e4a998f06
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/SDL_render.h
@@ -819,7 +819,7 @@ extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
* texture.
* \param dstrect A pointer to the destination rectangle, or NULL for the
* entire rendering target.
* \param angle An angle in degrees that indicates the rotation that will be applied to dstrect
* \param angle An angle in degrees that indicates the rotation that will be applied to dstrect, rotating it in a clockwise direction
* \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).
* \param flip An SDL_RendererFlip value stating which flipping actions should be performed on the texture
*

0 comments on commit b3589ed

Please sign in to comment.