Wiki Page Content

Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2009-12-05 04:52:23
Size: 1046
Editor: SheenaSmith
Comment: content added
Revision 5 as of 2010-09-07 02:38:19
Size: 1086
Editor: SheenaSmith
Comment: add RF
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
||'''index'''||the index of the display mode|| ||'''index'''||the index of the requested display mode||
Line 37: Line 37:
 .[[SDL_SelectVideoDisplay]]

SDL_GetDisplayMode

Use this function to fill in information about a specific display mode.

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


CategoryAPI, CategoryVideo

None: SDL_GetDisplayMode (last edited 2014-06-29 22:03:03 by dthree)

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