{"id":2248,"date":"2021-10-15T13:21:01","date_gmt":"2021-10-15T04:21:01","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=2248"},"modified":"2021-10-15T13:21:04","modified_gmt":"2021-10-15T04:21:04","slug":"post-2248","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/10\/15\/2248\/","title":{"rendered":"\u753b\u50cf\u3092\u62e1\u5927\u30fb\u7e2e\u5c0f\u3059\u308b\u6642\u306e\u88dc\u9593\u51e6\u7406"},"content":{"rendered":"\n<p>\u3000\u30da\u30a4\u30f3\u30c8\uff08\u30e9\u30b9\u30bf\uff09\u5f62\u5f0f\u306e\u753b\u50cf\u3092\u7e2e\u5c0f\u3059\u308b\u6642\u3001\u5143\u753b\u50cf\u304b\u3089\u305d\u306e\u307e\u307e\u30d4\u30af\u30bb\u30eb\u3092\u53d6\u308a\u51fa\u3059\u3068\u3001\u7dda\u304c\u9014\u5207\u308c\u305f\u308a\u3057\u307e\u3059\u3002\u9593\u5f15\u304b\u308c\u305f\u30d4\u30af\u30bb\u30eb\u306e\u60c5\u5831\u304c\u6368\u3066\u3089\u308c\u3066\u3057\u307e\u3046\u306e\u304c\u539f\u56e0\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001\u88dc\u9593\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u753b\u50cf\u304c\u8352\u304f\u306a\u308b\u3053\u3068\u3092\u9632\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7e2e\u5c0f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5358\u7d14\u306a\u7e2e\u5c0f<\/h3>\n\n\n\n<p>\u3000\u3044\u307e\u3001\u4ee5\u4e0b\u306e\u753b\u50cf\u3092\u7e26\u6a2a 1\/2 \u306b\u7e2e\u5c0f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"240\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/base.png\" alt=\"\" class=\"wp-image-2249\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/base.png 320w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/base-300x225.png 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><figcaption>\u5143\u306e\u753b\u50cf(320&#215;240)<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u5358\u7d14\u306b\u3001\u30d4\u30af\u30bb\u30eb\u3092\u4e00\u3064\u304a\u304d\u306b\u53d6\u308a\u51fa\u3057\u3066\u753b\u50cf\u3092\u4f5c\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u3002\u3053\u306e\u51e6\u7406\u306f\u3001SDL2 \u306e\u30ec\u30f3\u30c0\u30e9\u304c\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">#include &lt;stdio.h&gt;\n#include &lt;SDL.h&gt;\n\nvoid draw(SDL_Renderer *renderer) {\n    SDL_Texture *bmpTex;\n    SDL_Surface *image;\n\n    \/* \u30d0\u30c3\u30d5\u30a1\u521d\u671f\u5316 *\/\n    SDL_RenderClear(renderer);\n\n    \/* \u753b\u50cf\u8aad\u307f\u8fbc\u307f *\/\n    image = SDL_LoadBMP(\"base.bmp\");\n    bmpTex = SDL_CreateTextureFromSurface(renderer, image);\n    SDL_FreeSurface(image);\n\n    \/* \u753b\u50cf\u3092\u30d0\u30c3\u30d5\u30a1\u306b\u66f8\u304d\u8fbc\u307f *\/\n    SDL_RenderCopy(renderer, bmpTex, NULL, NULL);\n    SDL_DestroyTexture(bmpTex);\n\n    \/* \u8868\u793a *\/\n    SDL_RenderPresent(renderer);\n}\n\nint main(int argc, char* argv[]){\n    SDL_Window *window;\n    SDL_Renderer *renderer;\n    SDL_Event event;\n    int quit_flg = 1;\n\n    \/* \u521d\u671f\u5316 *\/\n    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) &lt; 0) {\n        fprintf(stderr, \"SDL_Init(): %s\\n\", SDL_GetError());\n        exit(1);\n    }\n    if (SDL_Init(SDL_INIT_JOYSTICK) &gt;= 0 ) {\n        if( SDL_JoystickOpen(0) != NULL )\n            SDL_ShowCursor(SDL_DISABLE);\n    }\n\n    \/* \u30a6\u30a3\u30f3\u30c9\u30a6\u4f5c\u6210 *\/\n    window = SDL_CreateWindow(\"TestDraw\", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 160, 120, SDL_WINDOW_OPENGL);\n    if( window == NULL ) {\n        printf(\"Can not create window\\n\");\n        exit(1);\n    }\n    renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);\n    if( renderer == NULL ) {\n        printf(\"Can not create renderer\\n\");\n        exit(1);\n    }\n\n    draw(renderer);\n\n    \/* \u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7 *\/\n    while(quit_flg) {\n        while( SDL_PollEvent(&amp;event) ) {\n            switch (event.type) {\n            case SDL_JOYBUTTONDOWN:\n            case SDL_KEYDOWN:\n            case SDL_QUIT:\n                quit_flg = 0;\n                break;\n            }\n        }\n    }\n    if (renderer) SDL_DestroyRenderer(renderer);\n    if (window) SDL_DestroyWindow(window);\n\n    SDL_Quit();\n\n    return 0;\n}<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"160\" height=\"120\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlshrinkview.png\" alt=\"\" class=\"wp-image-2250\"\/><figcaption>\u5358\u7d14\u306a\u7e2e\u5c0f<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u6587\u5b57\u3082\u8aad\u307f\u3065\u3089\u3044\u3067\u3059\u3057\u3001\u5186\u3082\u5207\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u88dc\u9593\u51e6\u7406\u3092\u884c\u3046<\/h3>\n\n\n\n<p>\u3000\u88dc\u9593\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u3042\u307e\u308a\u8907\u96d1\u306a\u3053\u3068\u306f\u3057\u305f\u304f\u306a\u3044\u306e\u3067\u3001\u5358\u7d14\u306b\u5143\u306e\u753b\u50cf\u306b\u307c\u304b\u3057\u3092\u304b\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u307c\u304b\u3057\u3092\u304b\u3051\u308b\u3053\u3068\u3067\u3001\u5468\u308a\u306e\u30d4\u30af\u30bb\u30eb\u306e\u60c5\u5831\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u306e\u3067\u3001\u7e2e\u5c0f\u6642\u306b\u9593\u5f15\u304b\u308c\u308b\u30d4\u30af\u30bb\u30eb\u306e\u60c5\u5831\u304c\u7121\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u3092\u9632\u3050\u52b9\u679c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3053\u3053\u3067\u306f\u3001\u5468\u308a\u306e\u30d4\u30af\u30bb\u30eb\u3068\u5e73\u5747\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">#include &lt;stdio.h&gt;\n#include &lt;SDL.h&gt;\n\nUint32 average_pixel(Uint32 *pixels, int n) {\n    int i;\n    Uint32 r, g, b, a;\n\n    r = g = b = a = 0;\n    for( i = 0; i &lt; n; i++ ) {\n        r += (*(pixels + i) &gt;&gt; 24) &amp; 0xff;\n        g += (*(pixels + i) &gt;&gt; 16) &amp; 0xff;\n        b += (*(pixels + i) &gt;&gt;  8) &amp; 0xff;\n        a += *(pixels + i) &amp; 0xff;\n    }\n    r \/= n;\n    g \/= n;\n    b \/= n;\n    a \/= n;\n\n    return (((r &lt;&lt; 24) &amp; 0xff000000) | ((g &lt;&lt; 16) &amp; 0xff0000) |\n            ((b &lt;&lt;  8) &amp; 0xff00) | (a &amp; 0xff));\n}\n\nvoid copy_pixels(SDL_Surface *src, SDL_Surface *dst) {\n    Uint32 *s, *d;\n    Uint32 p[9];\n    int i, j, k, l, m;\n\n    s = src-&gt;pixels;\n    d = dst-&gt;pixels;\n\n    for( i = 0; i &lt; dst-&gt;h; i++ ) {\n        for( j = 0; j &lt; dst-&gt;w; j++ ) {\n            m = 0;\n            for( k = -1; k &lt; 2; k++ ) {\n                if( (i + k) &lt; 0 || (i + k) &gt;= dst-&gt;h ) continue;\n                for( l = -1; l &lt; 2; l++ ) {\n                    if( (j + l) &lt; 0 || (j + l) &gt;= dst-&gt;w ) continue;\n                    p[m++] = *(s + (i+k) * src-&gt;w + j + l);\n                }\n            }\n\n            *(d + i * dst-&gt;w + j) = average_pixel(p, m);\n        }\n    }\n}\n\nvoid draw(SDL_Renderer *renderer) {\n    SDL_Texture *bmpTex;\n    SDL_Surface *image, *buf;\n\n    \/* \u30d0\u30c3\u30d5\u30a1\u521d\u671f\u5316 *\/\n    SDL_RenderClear(renderer);\n\n    \/* \u753b\u50cf\u8aad\u307f\u8fbc\u307f *\/\n    image = SDL_LoadBMP(\"base.bmp\");\n    if( image-&gt;format-&gt;BitsPerPixel != 32 ) {\n        printf(\"Not support %d depth image\\n\",  image-&gt;format-&gt;BitsPerPixel);\n        exit(-1);\n    }\n\n    buf = SDL_CreateRGBSurface(0, image-&gt;w, image-&gt;h, image-&gt;format-&gt;BitsPerPixel, 0, 0, 0, 0);\n\n    \/* \u307c\u304b\u3057\u305f\u753b\u50cf\u3092\u4f5c\u6210 *\/\n    copy_pixels(image, buf);\n    bmpTex = SDL_CreateTextureFromSurface(renderer, buf);\n    SDL_FreeSurface(image);\n    SDL_FreeSurface(buf);\n\n    \/* \u753b\u50cf\u3092\u30d0\u30c3\u30d5\u30a1\u306b\u66f8\u304d\u8fbc\u307f *\/\n    SDL_RenderCopy(renderer, bmpTex, NULL, NULL);\n    SDL_DestroyTexture(bmpTex);\n\n    \/* \u8868\u793a *\/\n    SDL_RenderPresent(renderer);\n}\n\nint main(int argc, char* argv[]){\n    SDL_Window *window;\n    SDL_Renderer *renderer;\n    SDL_Event event;\n    int quit_flg = 1;\n\n    \/* \u521d\u671f\u5316 *\/\n    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) &lt; 0) {\n        fprintf(stderr, \"SDL_Init(): %s\\n\", SDL_GetError());\n        exit(1);\n    }\n    if (SDL_Init(SDL_INIT_JOYSTICK) &gt;= 0 ) {\n        if( SDL_JoystickOpen(0) != NULL )\n            SDL_ShowCursor(SDL_DISABLE);\n    }\n\n    \/* \u30a6\u30a3\u30f3\u30c9\u30a6\u4f5c\u6210 *\/\n    window = SDL_CreateWindow(\"TestDraw\", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 160, 120, SDL_WINDOW_OPENGL);\n    if( window == NULL ) {\n        printf(\"Can not create window\\n\");\n        exit(1);\n    }\n    renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);\n    if( renderer == NULL ) {\n        printf(\"Can not create renderer\\n\");\n        exit(1);\n    }\n\n    draw(renderer);\n\n    \/* \u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7 *\/\n    while(quit_flg) {\n        while( SDL_PollEvent(&amp;event) ) {\n            switch (event.type) {\n            case SDL_JOYBUTTONDOWN:\n            case SDL_KEYDOWN:\n            case SDL_QUIT:\n                quit_flg = 0;\n                break;\n            }\n        }\n    }\n    if (renderer) SDL_DestroyRenderer(renderer);\n    if (window) SDL_DestroyWindow(window);\n\n    SDL_Quit();\n\n    return 0;\n}<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"160\" height=\"120\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlshrink.png\" alt=\"\" class=\"wp-image-2251\"\/><figcaption>\u88dc\u9593\u51e6\u7406\u3092\u3057\u3066\u7e2e\u5c0f<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u3053\u308c\u3067\u5143\u306e\u5f62\u304c\u5d29\u308c\u306a\u3044\u3088\u3046\u306b\u7e2e\u5c0f\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u5e73\u5747\u306e\u8a08\u7b97\u306f\u3001\u52a0\u91cd\u5e73\u5747\u3057\u305f\u307b\u3046\u304c\u3082\u3046\u5c11\u3057\u826f\u3044\u7d50\u679c\u304c\u5f97\u3089\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u62e1\u5927<\/h2>\n\n\n\n<p>\u3000\u62e1\u5927\u306e\u5834\u5408\u306f\u3001\u5358\u7d14\u306b\u62e1\u5927\u3057\u305f\u3060\u3051\u3067\u5143\u306e\u5f62\u304c\u5d29\u308c\u308b\u3088\u3046\u306a\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u30022 \u500d\u306b\u62e1\u5927\u3057\u305f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlexpansionview.png\" alt=\"\" class=\"wp-image-2252\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlexpansionview.png 640w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlexpansionview-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption>\u88dc\u9593\u7121\u3057\u3067\u62e1\u5927<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u66f2\u7dda\u306e\u30ae\u30b6\u30ae\u30b6\uff08\u30b8\u30e3\u30ae\u30fc\uff09\u304c\u76ee\u306b\u3064\u304d\u307e\u3059\u304c\u3001\u5f62\u304c\u5d29\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3069\u3046\u3057\u3066\u3082\u30b8\u30e3\u30ae\u30fc\u3092\u7de9\u548c\u3057\u305f\u3051\u308c\u3070\u3001\u307c\u304b\u3057\u3092\u304b\u3051\u307e\u3059\u304c\u3001\u7e2e\u5c0f\u306e\u3088\u3046\u306b\u5358\u7d14\u306a\u307c\u304b\u3057\u3067\u306f\u753b\u50cf\u304c\u306a\u307e\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u4e2d\u5fc3\u30d4\u30af\u30bb\u30eb\u306b\u5927\u304d\u306a\u91cd\u3055\u3092\u3082\u305f\u305b\u305f\u52a0\u91cd\u5e73\u5747\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">#include &lt;stdio.h&gt;\n#include &lt;SDL.h&gt;\n\nUint32 average_pixel(Uint32 *pixels, int n, int gr[]) {\n    int i;\n    Uint32 r, g, b, a;\n    int m;\n\n    r = g = b = a = m = 0;\n    for( i = 0; i &lt; n; i++ ) {\n        m += gr[i];\n        r += ((*(pixels + i) &gt;&gt; 24) &amp; 0xff) * gr[i];\n        g += ((*(pixels + i) &gt;&gt; 16) &amp; 0xff) * gr[i];\n        b += ((*(pixels + i) &gt;&gt;  8) &amp; 0xff) * gr[i];\n        a += (*(pixels + i) &amp; 0xff) * gr[i];\n    }\n    r \/= m;\n    g \/= m;\n    b \/= m;\n    a \/= m;\n\n    return (((r &lt;&lt; 24) &amp; 0xff000000) | ((g &lt;&lt; 16) &amp; 0xff0000) |\n            ((b &lt;&lt;  8) &amp; 0xff00) | (a &amp; 0xff));\n}\n\nvoid copy_pixels(SDL_Surface *src, SDL_Surface *dst) {\n    Uint32 *s, *d;\n    Uint32 p[9];\n    int g[9] = { 1, 1, 1, 1, 7, 1, 1, 1, 1 };\n    int i, j, k, l, m;\n    double n;\n\n    s = src-&gt;pixels;\n    d = dst-&gt;pixels;\n    n = (double)dst-&gt;w \/ src-&gt;w;\n\n    for( i = 0; i &lt; dst-&gt;h; i++ ) {\n        for( j = 0; j &lt; dst-&gt;w; j++ ) {\n            m = 0;\n            for( k = -1; k &lt; 2; k++ ) {\n                if( (i + k) &lt; 0 || (i + k) &gt;= dst-&gt;h ) {\n                    p[m++] = *(s + (int)(i\/n) * src-&gt;w + (int)(j\/n));\n                    continue;\n                }\n                for( l = -1; l &lt; 2; l++ ) {\n                    if( (j + l) &lt; 0 || (j + l) &gt;= dst-&gt;w ) {\n                        p[m++] = *(s + (int)(i\/n) * src-&gt;w + (int)(j\/n));\n                        continue;\n                    }\n                    p[m++] = *(s + (int)((i+k)\/n) * src-&gt;w + (int)((j+l)\/n));\n                }\n            }\n\n            *(d + i * dst-&gt;w + j) = average_pixel(p, m, g);\n        }\n    }\n}\n\nvoid draw(SDL_Renderer *renderer) {\n    SDL_Texture *bmpTex;\n    SDL_Surface *image, *buf;\n\n    \/* \u30d0\u30c3\u30d5\u30a1\u521d\u671f\u5316 *\/\n    SDL_RenderClear(renderer);\n\n    \/* \u753b\u50cf\u8aad\u307f\u8fbc\u307f *\/\n    image = SDL_LoadBMP(\"base.bmp\");\n    if( image-&gt;format-&gt;BitsPerPixel != 32 ) {\n        printf(\"Not support %d depth image\\n\",  image-&gt;format-&gt;BitsPerPixel);\n        exit(-1);\n    }\n    buf = SDL_CreateRGBSurface(0, image-&gt;w*2, image-&gt;h*2, image-&gt;format-&gt;BitsPerPixel, 0, 0, 0, 0);\n    copy_pixels(image, buf);\n    bmpTex = SDL_CreateTextureFromSurface(renderer, buf);\n    SDL_FreeSurface(image);\n    SDL_FreeSurface(buf);\n\n    \/* \u753b\u50cf\u3092\u30d0\u30c3\u30d5\u30a1\u306b\u66f8\u304d\u8fbc\u307f *\/\n    SDL_RenderCopy(renderer, bmpTex, NULL, NULL);\n    SDL_DestroyTexture(bmpTex);\n\n    \/* \u8868\u793a *\/\n    SDL_RenderPresent(renderer);\n}\n\nint main(int argc, char* argv[]){\n    SDL_Window *window;\n    SDL_Renderer *renderer;\n    SDL_Event event;\n    int quit_flg = 1;\n\n    \/* \u521d\u671f\u5316 *\/\n    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) &lt; 0) {\n        fprintf(stderr, \"SDL_Init(): %s\\n\", SDL_GetError());\n        exit(1);\n    }\n    if (SDL_Init(SDL_INIT_JOYSTICK) &gt;= 0 ) {\n        if( SDL_JoystickOpen(0) != NULL )\n            SDL_ShowCursor(SDL_DISABLE);\n    }\n\n    \/* \u30a6\u30a3\u30f3\u30c9\u30a6\u4f5c\u6210 *\/\n    window = SDL_CreateWindow(\"TestDraw\", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_OPENGL);\n    if( window == NULL ) {\n        printf(\"Can not create window\\n\");\n        exit(1);\n    }\n    renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);\n    if( renderer == NULL ) {\n        printf(\"Can not create renderer\\n\");\n        exit(1);\n    }\n\n    draw(renderer);\n\n   \/* \u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7 *\/\n    while(quit_flg) {\n        while( SDL_PollEvent(&amp;event) ) {\n            switch (event.type) {\n            case SDL_JOYBUTTONDOWN:\n            case SDL_KEYDOWN:\n            case SDL_QUIT:\n                quit_flg = 0;\n                break;\n            }\n        }\n    }\n    if (renderer) SDL_DestroyRenderer(renderer);\n    if (window) SDL_DestroyWindow(window);\n\n    SDL_Quit();\n\n    return 0;\n}<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"480\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlexpansion_new.png\" alt=\"\" class=\"wp-image-2253\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlexpansion_new.png 640w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/10\/sdlexpansion_new-300x225.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption>\u62e1\u5927\u5f8c\u306b\u307c\u304b\u3057<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u307e\u3042\u3001\u51e6\u7406\u304c\u591a\u304f\u306a\u308b\u306e\u3067\u3084\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3067\u3059\u304c\u3001\u4f59\u88d5\u304c\u3042\u308c\u3070\u3084\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u753b\u50cf\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u30da\u30a4\u30f3\u30c8\uff08\u30e9\u30b9\u30bf\uff09\u5f62\u5f0f\u306e\u753b\u50cf\u3092\u7e2e\u5c0f\u3059\u308b\u6642\u3001\u5143\u753b\u50cf\u304b\u3089\u305d\u306e\u307e\u307e\u30d4\u30af\u30bb\u30eb\u3092\u53d6\u308a\u51fa\u3059\u3068\u3001\u7dda\u304c\u9014\u5207\u308c\u305f\u308a\u3057\u307e\u3059\u3002\u9593\u5f15\u304b\u308c\u305f\u30d4\u30af\u30bb\u30eb\u306e\u60c5\u5831\u304c\u6368\u3066\u3089\u308c\u3066\u3057\u307e\u3046\u306e\u304c\u539f\u56e0\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u5834\u5408\u3001\u88dc\u9593\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u753b\u50cf\u304c\u8352\u304f\u306a\u308b\u3053\u3068\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-2248","post","type-post","status-publish","format-standard","hentry","category-sdl2"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=2248"}],"version-history":[{"count":4,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2248\/revisions"}],"predecessor-version":[{"id":2270,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2248\/revisions\/2270"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=2248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=2248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=2248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}