1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
\r
5 <meta http-equiv="Content-Style-Type" content="text/css">
\r
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
\r
7 <link rel="top" href="index.html" title="
\83z
\81[
\83\80">
\r
8 <link rel="parent" href="CategoryVideo.html" title="1
\82Â
\8fã">
\r
9 <title>SDL_DisplayMode</title>
\r
12 <a href="index.html">
\96Ú
\8e\9f</a> - <a href="ApiByCategory.html">API(
\8b@
\94\
\95Ê)</a> - <a href="CategoryVideo.html">
\83f
\83B
\83X
\83v
\83\8c\83C
\82Æ
\83E
\83B
\83\93\83h
\83E</a> - SDL_DisplayMode
\r
14 <h1>SDL_DisplayMode</h1>
\r
15 \83f
\83B
\83X
\83v
\83\8c\83C
\83\82\81[
\83h
\82Ì
\8d\
\91¢
\91Ì
\r
16 <h2>
\83t
\83B
\81[
\83\8b\83h</h2>
\r
17 <table border="1" summary="SDL_DisplayMode">
\r
18 <tr><td>Uint32</td><td>format</td><td><a href="SDL_PixelFormatEnum.html">SDL_PixelFormatEnum</a>
\82Ì
\92l
\82Ì1
\82Â</td></tr>
\r
19 <tr><td>int</td><td>w</td><td>
\95\9d</td></tr>
\r
20 <tr><td>int</td><td>h</td><td>
\8d\82\82³</td></tr>
\r
21 <tr><td>int</td><td>refresh_rate</td><td>
\8dX
\90V
\8eü
\8aú(Hz),
\93Á
\92è
\82Å
\82«
\82È
\82¢
\8fê
\8d\87\82Í0</td></tr>
\r
22 <tr><td>void*</td><td>driverdata</td><td>
\83h
\83\89\83C
\83o
\8cÅ
\97L
\82Ì
\83f
\81[
\83^. 0
\82Å
\8f\89\8aú
\89»
\82·
\82é</td></tr>
\r
24 <h2>
\83T
\83\93\83v
\83\8b\83R
\81[
\83h</h2>
\r
27 static int display_in_use = 0; /*
\8dÅ
\8f\89\82Ì
\83f
\83B
\83X
\83v
\83\8c\83C
\82Ì
\82Ý */
\r
29 int i, display_mode_count;
\r
30 SDL_DisplayMode mode;
\r
33 SDL_Log("SDL_GetNumVideoDisplays(): %i", SDL_GetNumVideoDisplays());
\r
35 display_mode_count = SDL_GetNumDisplayModes(display_in_use);
\r
36 if (display_mode_count < 1) {
\r
37 SDL_Log("SDL_GetNumDisplayModes
\8e¸
\94s: %s", SDL_GetError());
\r
40 SDL_Log("SDL_GetNumDisplayModes: %i", display_mode_count);
\r
42 for (i = 0; i < display_mode_count; ++i) {
\r
43 if (SDL_GetDisplayMode(display_in_use, i, &mode) != 0) {
\r
44 SDL_Log("SDL_GetDisplayMode
\8e¸
\94s: %s", SDL_GetError());
\r
49 SDL_Log("
\83\82\81[
\83h %i\tbpp %i\t%s\t%i x %i", i,
\r
50 SDL_BITSPERPIXEL(f), SDL_GetPixelFormatName(f), mode.w, mode.h);
\r
54 <h2>
\8aÖ
\98A
\8d\80\96Ú(
\8aÖ
\90\94)</h2>
\r
55 <a href="SDL_GetClosestDisplayMode.html">SDL_GetClosestDisplayMode</a><br>
\r
56 <a href="SDL_GetCurrentDisplayMode.html">SDL_GetCurrentDisplayMode</a><br>
\r
57 <a href="SDL_GetDesktopDisplayMode.html">SDL_GetDesktopDisplayMode</a><br>
\r
58 <a href="SDL_GetDisplayMode.html">SDL_GetDisplayMode</a><br>
\r
59 <a href="SDL_GetNumDisplayModes.html">SDL_GetNumDisplayModes</a><br>
\r
60 <a href="SDL_GetWindowDisplayMode.html">SDL_GetWindowDisplayMode</a><br>
\r
61 <a href="SDL_SetWindowDisplayMode.html">SDL_SetWindowDisplayMode</a><br>
\r
62 <h2>SDL Wiki
\82Ö
\82Ì
\83\8a\83\93\83N</h2>
\r
63 <a href="https://wiki.libsdl.org/SDL_DisplayMode">SDL_DisplayMode - SDL Wiki</a><br>
\r