include/SDL_rect.h
changeset 2909 3da0bb421d83
parent 2859 99210400e8b9
child 3407 d3baf5ac4e37
     1.1 --- a/include/SDL_rect.h	Tue Dec 23 01:28:06 2008 +0000
     1.2 +++ b/include/SDL_rect.h	Tue Dec 23 02:23:18 2008 +0000
     1.3 @@ -104,6 +104,18 @@
     1.4                                             const SDL_Rect * B,
     1.5                                             SDL_Rect * result);
     1.6  
     1.7 +/**
     1.8 + * \fn SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *rect, int *X1, int *Y1, int *X2, int *Y2)
     1.9 + *
    1.10 + * \brief Calculate the intersection of a rectangle and line segment.
    1.11 + *
    1.12 + * \return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
    1.13 + */
    1.14 +extern DECLSPEC SDL_bool SDLCALL SDL_IntersectRectAndLine(const SDL_Rect *
    1.15 +                                                          rect, int *X1,
    1.16 +                                                          int *Y1, int *X2,
    1.17 +                                                          int *Y2);
    1.18 +
    1.19  /* Ends C function definitions when using C++ */
    1.20  #ifdef __cplusplus
    1.21  /* *INDENT-OFF* */