Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-10-05 04:33:34
Size: 902
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Revision 3 as of 2011-01-02 06:17:29
Size: 922
Editor: SheenaSmith
Comment: update formatting - enums, structs, the/an
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''A'''||the first [[SDL_Rect]]||
||'''B'''||the second [[SDL_Rect]]||
||'''A'''||the first [[SDL_Rect]] structure||
||'''B'''||the second [[SDL_Rect]] structure||

SDL_RectEquals

Use this function to check whether two rectangles are equal.

Syntax

SDL_bool SDL_RectEquals(const SDL_Rect* A,
                        const SDL_Rect* B)

Function Parameters

A

the first SDL_Rect structure

B

the second SDL_Rect structure

Return Value

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

Code Examples

You can add your code example here

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 it returns SDL_FALSE.


CategoryAPI, CategoryRect

None: SDL_RectEquals (last edited 2013-08-11 12:25:26 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit