Annotated edit history of
SDL_VideoModeOK(3) version 2, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SDL_VideoModeOK |
| |
|
2 |
!!!SDL_VideoModeOK |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
EXAMPLE |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| |
|
12 |
SDL_VideoModeOK- Check to see if a particular video mode is supported. |
| |
|
13 |
!!SYNOPSIS |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
__#include __ |
| |
|
17 |
|
| |
|
18 |
|
| |
|
19 |
__int SDL_VideoModeOK__(__int width, int height, int |
| |
|
20 |
bpp, Uint32 flags__); |
| |
|
21 |
!!DESCRIPTION |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
__SDL_VideoModeOK__ returns __0__ if the requested |
| |
|
25 |
mode is not supported under any bit depth, or returns the |
| |
|
26 |
bits-per-pixel of the closest available mode with the given |
| |
|
27 |
width, height and requested ''surface'' flags (see |
| 2 |
perry |
28 |
__SDL_!SetVideoMode__). |
| 1 |
perry |
29 |
|
| |
|
30 |
|
| |
|
31 |
The bits-per-pixel value returned is only a suggested mode. |
| |
|
32 |
You can usually request and bpp you want when ''setting'' |
| |
|
33 |
the video mode and SDL will emulate that color depth with a |
| |
|
34 |
shadow video surface. |
| |
|
35 |
|
| |
|
36 |
|
| |
|
37 |
The arguments to __SDL_VideoModeOK__ are the same ones |
| 2 |
perry |
38 |
you would pass to ''SDL_!SetVideoMode'' |
| 1 |
perry |
39 |
!!EXAMPLE |
| |
|
40 |
|
| |
|
41 |
|
| |
|
42 |
SDL_Surface *screen; |
| |
|
43 |
Uint32 bpp; |
| |
|
44 |
. |
| |
|
45 |
. |
| |
|
46 |
. |
| |
|
47 |
printf( |
| |
|
48 |
!!SEE ALSO |
| |
|
49 |
|
| |
|
50 |
|
| 2 |
perry |
51 |
__SDL_!SetVideoMode__, |
| |
|
52 |
__SDL_!GetVideoInfo__ |
| 1 |
perry |
53 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.