Wiki Page Content

Differences between revisions 6 and 7
Revision 6 as of 2011-03-04 21:29:56
Size: 729
Editor: SheenaSmith
Comment: update content - 2/28 5421 (2/10 5244)
Revision 7 as of 2013-10-20 17:54:06
Size: 904
Editor: JonasThiem
Comment: Explaining where displayIndex comes from
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
''You can add useful comments here'' The displayIndex needs to be in the range from 0 to [[SDL_GetNumDisplayModes]]() - 1. (0 being the first display/first screen, 1 being the second one etc..) This allows you to supporting multiple screens nicely.

SDL_GetNumDisplayModes

Use this function to return the number of available display modes.

Syntax

int SDL_GetNumDisplayModes(int displayIndex)

Function Parameters

displayIndex

the index of the display to query

Return Value

Returns a number >= 1 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

The displayIndex needs to be in the range from 0 to SDL_GetNumDisplayModes() - 1. (0 being the first display/first screen, 1 being the second one etc..) This allows you to supporting multiple screens nicely.


CategoryAPI, CategoryVideo

None: SDL_GetNumDisplayModes (last edited 2019-05-09 16:22:25 by gerstrong)

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