|
Size: 887
Comment: add categories
|
Size: 1056
Comment: content changed
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| ||'''index'''||the index of the display mode|| ||'''mode'''||points to the mode of the display|| |
||'''index'''||the index of the requested display mode|| ||'''mode'''||a pointer to an [[SDL_DisplayMode]] structure that is filled in with the mode '''index'''|| |
| Line 20: | Line 20: |
| Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. |
SDL_GetDisplayMode
Use this function to fill in information about a specific display mode.
Contents
Syntax
int SDL_GetDisplayMode(int index,
SDL_DisplayMode* mode)
Function Parameters
index |
the index of the requested display mode |
mode |
a pointer to an SDL_DisplayMode structure that is filled in with the mode index |
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
The display modes are sorted in this priority:
bits per pixel -> more colors to fewer colors
width -> largest to smallest
height -> largest to smallest
refresh rate -> highest to lowest
