Wiki Page Content

Differences between revisions 10 and 11
Revision 10 as of 2010-09-26 17:41:54
Size: 1116
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Revision 11 as of 2011-01-02 06:08:15
Size: 1116
Editor: SheenaSmith
Comment: correct typo
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
||int||'''w'''||the height of the rectangle||
||int||'''h'''||the width of the rectangle||
||int||'''w'''||the width of the rectangle||
||int||'''h'''||the height of the rectangle||

SDL_Rect

A structure that defines a rectangle, with the origin at the upper left.

Data Fields

int

x

the x location of the rectangle's upper left corner

int

y

the y location of the rectangle's upper left corner

int

w

the width of the rectangle

int

h

the height of the rectangle

Code Examples

You can add your code example here

Remarks

An SDL_Rect defines a rectangular area of the screen. It is used by SDL_BlitSurface() to define blitting regions and by several other video functions.


CategoryStruct, CategoryRect

None: SDL_Rect (last edited 2015-11-18 21:12:51 by PhilippWiesemann)

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