OSDN Git Service

SDL_HINT_RENDER_DRIVER metalを追加した https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER...
[sdl2referencejp/sdl2referencejp.git] / SDL_GetTicks.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\r
2 <html lang="ja-JP">\r
3 <head>\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="CategoryTimer.html" title="1\82Â\8fã">\r
9 <title>SDL_GetTicks</title>\r
10 </head>\r
11 <body>\r
12 <a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryTimer.html">\83^\83C\83}</a> - SDL_GetTicks\r
13 <hr>\r
14 <h1>SDL_GetTicks</h1>\r
15 SDL\82ª\8f\89\8aú\89»\82³\82ê\82Ä\82©\82ç\8co\89ß\82µ\82½\8e\9e\8aÔ\82ð\83~\83\8a\95b\82Å\93¾\82é\r
16 <h2>\8d\\95¶</h2>\r
17 <code>Uint32 SDL_GetTicks(void)</code>\r
18 <h2>\96ß\82è\92l</h2>\r
19 SDL\82ª\8f\89\8aú\89»\82³\82ê\82Ä\82©\82ç\8co\89ß\82µ\82½\8e\9e\8aÔ\82ð32bit\95\84\8d\86\82È\82µ\90®\90\94\82Å\96ß\82·.\r
20 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
21 <p>\r
22 <code>\r
23 <pre>\r
24 unsigned int lastTime = 0, currentTime;\r
25 while (!quit) {\r
26     // \82±\82±\82Å\8f\88\97\9d\82ð\8ds\82¤\r
27     // ...\r
28 \r
29     // 1\95b\82É1\89ñ\95ñ\8d\90\82·\82é\r
30     currentTime = SDL_GetTicks();\r
31     if (currentTime > lastTime + 1000) {\r
32         printf("\95ñ\8d\90: %d\n", variable);\r
33         lastTime = currentTime;\r
34     }\r
35 }\r
36 </pre>\r
37 </code>\r
38 </p>\r
39 <h2>\8fÚ\8d×</h2>\r
40 \82±\82Ì\92l\82Í\83v\83\8d\83O\83\89\83\80\82ª\8eÀ\8ds\82³\82ê\82Ä\82©\82ç\96ñ49\93ú\82Å\8aª\82«\96ß\82é.\r
41 <h2>\8aÖ\98A\8d\80\96Ú(\8aÖ\90\94)</h2>\r
42 <a href="SDL_TICKS_PASSED.html">SDL_TICKS_PASSED</a><br>\r
43 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>\r
44 <a href="https://wiki.libsdl.org/SDL_GetTicks">SDL_GetTicks - SDL Wiki</a>\r
45 <hr>\r
46 </body>\r
47 </html>\r