THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Use this function to check if a point resides inside a rectangle.
const SDL_Point* p,
SDL_bool SDL_PointInRect(const SDL_Rect* r)
p |
an SDL_Point which is the point |
r |
an SDL_Rect which is the rectangle |
Returns SDL_TRUE if point resides inside rectangle or SDL_FALSE if not.
Both p and r must not be NULL.
This function is available since SDL 2.0.4.
CategoryAPI, CategoryRect, CategoryDraft