include/SDL_render.h
changeset 6320 6077a1310907
parent 6258 fce7ce72677b
child 6414 df50b0d6c1c3
equal deleted inserted replaced
6319:698c98b83cbb 6320:6077a1310907
   103     SDL_TEXTUREMODULATE_COLOR = 0x00000001,    /**< srcC = srcC * color */
   103     SDL_TEXTUREMODULATE_COLOR = 0x00000001,    /**< srcC = srcC * color */
   104     SDL_TEXTUREMODULATE_ALPHA = 0x00000002     /**< srcA = srcA * alpha */
   104     SDL_TEXTUREMODULATE_ALPHA = 0x00000002     /**< srcA = srcA * alpha */
   105 } SDL_TextureModulate;
   105 } SDL_TextureModulate;
   106 
   106 
   107 /**
   107 /**
       
   108  *  \brief Flip constants for SDL_RenderCopyEx
       
   109  */
       
   110 typedef enum
       
   111 {
       
   112     SDL_FLIP_NONE = 0x00000000,     /**< Do not flip */
       
   113     SDL_FLIP_HORIZONTAL = 0x00000001,    /**< flip horizontally */
       
   114     SDL_FLIP_VERTICAL = 0x00000002     /**< flip vertically */
       
   115 } SDL_RendererFlip;
       
   116 
       
   117 /**
   108  *  \brief A structure representing rendering state
   118  *  \brief A structure representing rendering state
   109  */
   119  */
   110 struct SDL_Renderer;
   120 struct SDL_Renderer;
   111 typedef struct SDL_Renderer SDL_Renderer;
   121 typedef struct SDL_Renderer SDL_Renderer;
   112 
   122 
   597 extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
   607 extern DECLSPEC int SDLCALL SDL_RenderCopy(SDL_Renderer * renderer,
   598                                            SDL_Texture * texture,
   608                                            SDL_Texture * texture,
   599                                            const SDL_Rect * srcrect,
   609                                            const SDL_Rect * srcrect,
   600                                            const SDL_Rect * dstrect);
   610                                            const SDL_Rect * dstrect);
   601 
   611 
       
   612 /**
       
   613  *  \brief Copy a portion of the source texture to the current rendering target, rotating it by angle around the given center 
       
   614  *
       
   615  *  \param texture The source texture.
       
   616  *  \param srcrect   A pointer to the source rectangle, or NULL for the entire
       
   617  *                   texture.
       
   618  *  \param dstrect   A pointer to the destination rectangle, or NULL for the
       
   619  *                   entire rendering target.
       
   620  *  \param angle    An angle in degrees that indicates the rotation that will be applied to dstrect
       
   621  *  \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)
       
   622  *  \param flip     A SFL_Flip value stating which flipping actions should be performed on the texture
       
   623  * 
       
   624  *  \return 0 on success, or -1 on error
       
   625  */
       
   626 extern DECLSPEC int SDLCALL SDL_RenderCopyEx(SDL_Renderer * renderer,
       
   627                                            SDL_Texture * texture,
       
   628                                            const SDL_Rect * srcrect,
       
   629                                            const SDL_Rect * dstrect,
       
   630                                            const double angle,
       
   631                                            const SDL_Point *center,
       
   632                                            const SDL_RendererFlip flip);
   602 
   633 
   603 /**
   634 /**
   604  *  \brief Read pixels from the current rendering target.
   635  *  \brief Read pixels from the current rendering target.
   605  *  
   636  *  
   606  *  \param rect   A pointer to the rectangle to read, or NULL for the entire 
   637  *  \param rect   A pointer to the rectangle to read, or NULL for the entire