Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2010-01-10 19:14:13
Size: 920
Editor: SheenaSmith
Comment: added DRAFT to top for removal after page is edited
Revision 3 as of 2010-08-29 20:27:29
Size: 873
Editor: SheenaSmith
Comment: update content (w/ Sam); remove 'draft' note
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%"style="color: rgb(255, 0, 0); text-align: center;">DRAFT||
Line 17: Line 16:
||'''index'''||the index of the display||
||'''rect'''||a pointer to the [[SDL_Rect]] to query||
||'''index'''||the index of the display to query||
||'''rect'''||a pointer to the [[SDL_Rect]] to fill with the display bounds||
Line 21: Line 20:
Returns 0 on success or -1 if the index is out of range; call [[SDL_GetError]]() for more information. Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information.

SDL_GetDisplayBounds

Use this function to get the desktop area represented by a display, with the primary display located at 0,0.

Syntax

int SDL_GetDisplayBounds(int       index,
                         SDL_Rect* rect)

Function Parameters

index

the index of the display to query

rect

a pointer to the SDL_Rect to fill with the display bounds

Return Value

Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryVideo

None: SDL_GetDisplayBounds (last edited 2014-06-22 07:46:28 by dthree)

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