Wiki Page Content

Differences between revisions 10 and 11
Revision 10 as of 2016-05-14 21:46:51
Size: 855
Comment: Fixed text (Feedback 2016-05-14).
Revision 11 as of 2016-05-14 21:47:33
Size: 858
Comment: Added empty line.
Deletions are marked like this. Additions are marked like this.
Line 26: Line 26:
The displayIndex needs to be in the range from 0 to [[SDL_GetNumVideoDisplays]]() - 1. This allows you to support multiple screens. The displayIndex needs to be in the range from 0 to [[SDL_GetNumVideoDisplays]]() - 1.

This allows you to support multiple screens.

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_GetNumVideoDisplays() - 1.

This allows you to support multiple screens.


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