OSDN Git Service

SDL_atomic_t サンプルコードを修正 https://wiki.libsdl.org/SDL_atomic_t?action=diff&rev1=3&rev2=4
[sdl2referencejp/sdl2referencejp.git] / IMG_LoadXV_RW.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="SDL_image">\r
7 <link rel="top" href="index.html" title="\83z\81[\83\80">\r
8 <link rel="parent" href="SDL_image-functions-loading.html" title="1\82Â\8fã">\r
9 <title>IMG_LoadXV_RW</title>\r
10 </head>\r
11 <body>\r
12 <a href="index.html#SDL_image">\96Ú\8e\9f</a> - <a href="SDL_image-functions.html">3.\8aÖ\90\94</a> - <a href="SDL_image-functions-loading.html">3.2\93Ç\82Ý\8d\9e\82Ý</a> - IMG_LoadXV_RW\r
13 <hr>\r
14 <h1>IMG_LoadXV_RW</h1>\r
15 <p>\r
16 <code>SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src)</code>\r
17 </p>\r
18 <p>\r
19 <dl>\r
20 <dt>src</dt><dd>\93Ç\82Ý\8d\9e\82Ý\8c³\82Ì<a href="SDL_RWops.html">SDL_RWops</a>. XV\89æ\91\9c\82Í\82±\82±\82©\82ç\93Ç\82Ý\8d\9e\82Ü\82ê\82é</dd>\r
21 </dl>\r
22 </p>\r
23 <p>\r
24 XV\89æ\91\9c\82Ìsrc\82©\82ç\82ð\83T\81[\83t\83F\83C\83X\82ð\90\90¬\82·\82é (SDL_image\83\89\83C\83u\83\89\83\8a\82ªXV\8c`\8e®\82É\91Î\89\9e\82µ\82Ä\82¢\82ê\82Î).\r
25 </p>\r
26 <p>\r
27 \96ß\82è\92l: \90V\82µ\82¢<a href="SDL_Surface.html">SDL_Surface</a>\82Ö\82Ì\83|\83C\83\93\83^\82ð\96ß\82·. XV\82É\91Î\89\9e\82µ\82Ä\82¢\82È\82¢, \83t\83@\83C\83\8b\82Ì\93Ç\82Ý\8d\9e\82Ý\82É\8e¸\94s\82µ\82½\82Æ\82«\82È\82Ç\82ÍNULL\82ð\96ß\82·.\r
28 </p>\r
29 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>\r
30 <code>\r
31 <pre>\r
32 // sample.xv\82ðimage\82É\93Ç\82Ý\8d\9e\82Þ\r
33 SDL_Surface *image;\r
34 SDL_RWops *rwop;\r
35 rwop=SDL_RWFromFile("sample.xv", "rb");\r
36 image=IMG_LoadXV_RW(rwop);\r
37 if(!image) {\r
38     printf("IMG_LoadXV_RW: %s\n", IMG_GetError());\r
39     // \82±\82±\82Å\83G\83\89\81[\8f\88\97\9d\82ð\8ds\82¤\r
40 }\r
41 </pre>\r
42 </code>\r
43 <h2>\8eQ\8fÆ</h2>\r
44 <a href="IMG_LoadTyped_RW.html">IMG_LoadTyped_RW</a>,\r
45 <a href="IMG_isXV.html">IMG_isXV</a>\r
46 <h2>\8c´\95\82Ö\82Ì\83\8a\83\93\83N</h2>\r
47 <a href="https://www.libsdl.org/projects/SDL_image/docs/SDL_image_27.html#SEC27">3.2.17 IMG_LoadXV_RW</a>\r
48 <hr>\r
49 </body>\r
50 </html>\r