include/SDL_rect.h
changeset 2909 3da0bb421d83
parent 2859 99210400e8b9
child 3407 d3baf5ac4e37
equal deleted inserted replaced
2908:aa6ba38c1714 2909:3da0bb421d83
   102  */
   102  */
   103 extern DECLSPEC void SDLCALL SDL_UnionRect(const SDL_Rect * A,
   103 extern DECLSPEC void SDLCALL SDL_UnionRect(const SDL_Rect * A,
   104                                            const SDL_Rect * B,
   104                                            const SDL_Rect * B,
   105                                            SDL_Rect * result);
   105                                            SDL_Rect * result);
   106 
   106 
       
   107 /**
       
   108  * \fn SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *rect, int *X1, int *Y1, int *X2, int *Y2)
       
   109  *
       
   110  * \brief Calculate the intersection of a rectangle and line segment.
       
   111  *
       
   112  * \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
       
   113  */
       
   114 extern DECLSPEC SDL_bool SDLCALL SDL_IntersectRectAndLine(const SDL_Rect *
       
   115                                                           rect, int *X1,
       
   116                                                           int *Y1, int *X2,
       
   117                                                           int *Y2);
       
   118 
   107 /* Ends C function definitions when using C++ */
   119 /* Ends C function definitions when using C++ */
   108 #ifdef __cplusplus
   120 #ifdef __cplusplus
   109 /* *INDENT-OFF* */
   121 /* *INDENT-OFF* */
   110 }
   122 }
   111 /* *INDENT-ON* */
   123 /* *INDENT-ON* */