|
Size: 904
Comment: Explaining where displayIndex comes from
|
Size: 856
Comment:
|
| 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_GetNumDisplayModes]]() - 1. (0 being the first display/first screen, 1 being the second one etc..) This allows you to supporting multiple screens nicely. | The displayIndex needs to be in the range from 0 to [[SDL_GetNumDisplayModes]]() - 1. This allows you to supporting multiple screens. |
| Line 30: | Line 30: |
| .[[SDL_GetNumDisplayModes]] |
SDL_GetNumDisplayModes
Use this function to return the number of available display modes.
Contents
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. This allows you to supporting multiple screens.
