Annotated edit history of
SDL_ListModes(3) version 2, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
2 |
perry |
1 |
SDL_!ListModes |
|
|
2 |
!!!SDL_!ListModes |
1 |
perry |
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
EXAMPLE |
|
|
7 |
SEE ALSO |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
2 |
perry |
12 |
SDL_!ListModes- Returns a pointer to an array of available screen dimensions for the given format and video flags |
1 |
perry |
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__#include __ |
|
|
17 |
|
|
|
18 |
|
2 |
perry |
19 |
__SDL_Rect **SDL_!ListModes__(__SDL_!PixelFormat *format, |
1 |
perry |
20 |
Uint32 flags__); |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
Return a pointer to an array of available screen dimensions |
|
|
25 |
for the given format and video flags, sorted largest to |
|
|
26 |
smallest. Returns __NULL__ if there are no dimensions |
|
|
27 |
available for a particular format, or __-1__ if any |
|
|
28 |
dimension is okay for the given format. |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
If __format__ is __NULL__, the mode list will be for |
|
|
32 |
the format returned by |
2 |
perry |
33 |
''SDL_!GetVideoInfo()''-''vfmt__. The __flag__ |
1 |
perry |
34 |
parameter is an OR'd combination of ''surface'' flags. |
2 |
perry |
35 |
The flags are the same as those used __SDL_!SetVideoMode__ |
1 |
perry |
36 |
and they play a strong role in deciding what modes are |
|
|
37 |
valid. For instance, if you pass __SDL_HWSURFACE__ as a |
|
|
38 |
flag only modes that support hardware video surfaces will be |
|
|
39 |
returned. |
|
|
40 |
!!EXAMPLE |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
SDL_Rect **modes; |
|
|
44 |
int i; |
|
|
45 |
. |
|
|
46 |
. |
|
|
47 |
. |
|
|
48 |
/* Get available fullscreen/hardware modes */ |
2 |
perry |
49 |
modes=SDL_!ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE); |
1 |
perry |
50 |
/* Check is there are any modes available */ |
|
|
51 |
if(modes == (SDL_Rect **)0){ |
|
|
52 |
printf( |
|
|
53 |
!!SEE ALSO |
|
|
54 |
|
|
|
55 |
|
2 |
perry |
56 |
__SDL_!SetVideoMode__, __SDL_!GetVideoInfo__, |
|
|
57 |
__SDL_Rect__, __SDL_!PixelFormat__ |
1 |
perry |
58 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.