1.1 --- a/include/SDL_render.h Fri Jun 01 19:42:15 2012 -0300
1.2 +++ b/include/SDL_render.h Fri Jun 01 19:51:08 2012 -0300
1.3 @@ -105,6 +105,16 @@
1.4 } SDL_TextureModulate;
1.5
1.6 /**
1.7 + * \brief Flip constants for SDL_RenderCopyEx
1.8 + */
1.9 +typedef enum
1.10 +{
1.11 + SDL_FLIP_NONE = 0x00000000, /**< Do not flip */
1.12 + SDL_FLIP_HORIZONTAL = 0x00000001, /**< flip horizontally */
1.13 + SDL_FLIP_VERTICAL = 0x00000002 /**< flip vertically */
1.14 +} SDL_RendererFlip;
1.15 +
1.16 +/**
1.17 * \brief A structure representing rendering state
1.18 */
1.19 struct SDL_Renderer;
1.20 @@ -599,6 +609,27 @@
1.21 const SDL_Rect * srcrect,
1.22 const SDL_Rect * dstrect);
1.23
1.24 +/**
1.25 + * \brief Copy a portion of the source texture to the current rendering target, rotating it by angle around the given center
1.26 + *
1.27 + * \param texture The source texture.
1.28 + * \param srcrect A pointer to the source rectangle, or NULL for the entire
1.29 + * texture.
1.30 + * \param dstrect A pointer to the destination rectangle, or NULL for the
1.31 + * entire rendering target.
1.32 + * \param angle An angle in degrees that indicates the rotation that will be applied to dstrect
1.33 + * \param center A pointer to a point indicating the point around which dstrect will be rotated (if NULL, rotation will be done aroud dstrect.w/2, dstrect.h/2)
1.34 + * \param flip A SFL_Flip value stating which flipping actions should be performed on the texture
1.35 + *
1.36 + * \return 0 on success, or -1 on error
1.37 + */
1.38 +extern DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer * renderer,
1.39 + SDL_Texture * texture,
1.40 + const SDL_Rect * srcrect,
1.41 + const SDL_Rect * dstrect,
1.42 + const double angle,
1.43 + const SDL_Point *center,
1.44 + const SDL_RendererFlip flip);
1.45
1.46 /**
1.47 * \brief Read pixels from the current rendering target.