SDL Wiki

SDL_FRectEquals

Use this function to check whether two rectangles are equal.

Syntax

SDL_bool SDL_FRectEquals(const SDL_FRect* a,
                        const SDL_FRect* b)

Function Parameters

a

an SDL_FRect structure representing the first rectangle

b

an SDL_FRect structure representing the second rectangle

Return Value

Returns SDL_TRUE if the two rectangles are exactly the same, SDL_FALSE otherwise; see Remarks for details.

Remarks

This function compares the width, height, and location (X and Y) values for each of the two rectangles and returns SDL_TRUE if all corresponding values are equal. If any value does not match or either rectangle is NULL it returns SDL_FALSE.


CategoryAPI, CategoryRect


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.