Wiki Page Content

Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2009-11-19 22:10:56
Size: 843
Editor: SheenaSmith
Comment: create page, add content
Revision 8 as of 2011-03-04 21:39:55
Size: 1159
Editor: SheenaSmith
Comment: update content - 2/28 5421 (2/10 5244)
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
int SDL_GetDisplayMode(int index, int SDL_GetDisplayMode(int displayIndex,
                       int modeIndex,
Line 16: Line 17:
||'''index'''||the index of the display mode||
||'''mode'''||points to the mode of the display||
||'''displayIndex'''||the index of the display to query||
||'''modeIndex'''||^the index of the requested display mode^||
||'''mode'''||an [[SDL_DisplayMode]] structure filled in with the mode '''index'''||
Line 20: Line 22:
Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information.
Line 37: Line 39:

----
[[CategoryAPI]], [[CategoryVideo]]

SDL_GetDisplayMode

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

Syntax

int SDL_GetDisplayMode(int              displayIndex,
                       int              modeIndex,
                       SDL_DisplayMode* mode)

Function Parameters

displayIndex

the index of the display to query

modeIndex

the index of the requested display mode

mode

an SDL_DisplayMode structure 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