{"id":2070,"date":"2021-09-27T19:47:39","date_gmt":"2021-09-27T10:47:39","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=2070"},"modified":"2021-10-14T09:43:24","modified_gmt":"2021-10-14T00:43:24","slug":"post-2070","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/09\/27\/2070\/","title":{"rendered":"SDL2 \u3067 \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"\n<p>\u3000SDL2 \u304c\u308f\u304b\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002320 x 240 \u306e\u30b5\u30a4\u30ba\u306b\u3057\u3066\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30ea\u30b5\u30a4\u30ba\u306f\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u624b\u9806\u306f\u3001SDL \u3092\u521d\u671f\u5316\u3057\u3066 \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4f5c\u3063\u305f\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a\u3044\u306e\u3067\u3001renderer \u3092\u4f5c\u6210\u3057\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u5857\u308a\u3064\u3076\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SDL \u306e\u521d\u671f\u5316\uff08SDL_Init\uff09<\/h2>\n\n\n\n<p>\u3000SDL \u306e\u521d\u671f\u5316\u306f\u3001SDL_Init() \u95a2\u6570\u3067\u884c\u3044\u307e\u3059\u3002\u5f15\u6570\u306b\u306f\u4f55\u3092\u521d\u671f\u5316\u3059\u308b\u306e\u304b\u3092\u5b9a\u7fa9\u6e08\u307f\u306e\u30d5\u30e9\u30b0\u3092\u4f7f\u3063\u3066\u6307\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3001SDL_INIT_VIDEO \u3092\u5f15\u6570\u306b\u3057\u307e\u3059\u3002\u3082\u3057\u3001\u30aa\u30fc\u30c7\u30a3\u30aa\u3082\u4f7f\u3046\u306a\u3089\u3001SDL_INIT_AUDIO \u3092 |\uff08OR\uff09\u3067\u4e26\u3079\u307e\u3059\u3002\u30a8\u30e9\u30fc\u306e\u5834\u5408\u306f\u3001\u623b\u308a\u5024\u304c\u8ca0\u6570\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">    if (SDL_Init(SDL_INIT_VIDEO) &lt; 0) {\n        fprintf(stderr, \"SDL_Init(): %s\\n\", SDL_GetError());\n        exit(1);\n    }\n<\/pre>\n\n\n\n<p>\u3000\u30a8\u30e9\u30fc\u304c\u6709\u3063\u305f\u5834\u5408\u3001SDL_GetError() \u95a2\u6570\u3067\u8a73\u7d30\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a6\u30a3\u30f3\u30c9\u30a6\u4f5c\u6210<\/h2>\n\n\n\n<p>\u3000\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4f5c\u6210\u306f\u3001SDL_CreateWindow() \u95a2\u6570\u3067\u884c\u3044\u307e\u3059\u3002\u5f15\u6570\u306f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u30bf\u30a4\u30c8\u30eb\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e x, y \u5ea7\u6a19\u3001\u5e45\u3068\u9ad8\u3055\u3001\u305d\u3057\u3066\u30d5\u30e9\u30b0\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30d5\u30e9\u30b0\u306b\u306f\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u306e\u30d5\u30e9\u30b0\u3084\u3001\u975e\u8868\u793a\u306e\u30d5\u30e9\u30b0\u306a\u3069\u69d8\u3005\u3042\u308a\u307e\u3059\u3002SDL_WindowFlags \u3067\u691c\u7d22\u3059\u308c\u3070\u8aac\u660e\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u623b\u308a\u5024\u306f\u751f\u6210\u3055\u308c\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8fd4\u3057\u307e\u3059\u3002\u4f5c\u6210\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u3001NULL \u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u4eca\u56de\u306f\u3001320 x 240 \u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u4e2d\u592e\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">     SDL_Window *window;\n    \u30fb\n    \u30fb\n    window = SDL_CreateWindow(\"SDL Test\", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 320, 240, SDL_WINDOW_OPENGL);\n    if( window == NULL ) {\n        printf(\"Can not create window\\n\");\n        exit(1);\n    }\n<\/pre>\n\n\n\n<p>\u3000\u623b\u308a\u5024\u306e window \u306f\u3001\u5f8c\u3067\u30ec\u30f3\u30c0\u30e9\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ec\u30f3\u30c0\u30e9\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u3000SDL2 \u304b\u3089\u3001\u30ec\u30f3\u30c0\u30e9\u3092\u4f7f\u3063\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u3078\u63cf\u753b\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4ee5\u524d\u306e\u30b5\u30fc\u30d5\u30a7\u30b9\u3092\u4f7f\u3063\u305f\u63cf\u753b\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u4e21\u65b9\u3092\u4f7f\u3046\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u30ec\u30f3\u30c0\u30e9\u3092\u4f7f\u3046\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3000\u30ec\u30f3\u30c0\u30e9\u306f\u3001SDL_CreateRenderer() \u95a2\u6570\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002\u5f15\u6570\u306f\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3001\u671f\u5316\u3059\u308b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30c9\u30e9\u30a4\u30d0\u306e\u756a\u53f7\u3001\u30d5\u30e9\u30b0\u3067\u3059\u3002\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u30c9\u30e9\u30a4\u30d0\u306e\u756a\u53f7\u306f\u3001-1 \u3092\u4f7f\u3046\u3068\u30d5\u30e9\u30b0\u306b\u5408\u308f\u305b\u305f\u30c9\u30e9\u30a4\u30d0\u304c\u4f7f\u308f\u308c\u307e\u3059\u3002\u30d5\u30e9\u30b0\u306f\u3001SDL_RENDERER_ACCELERATED \u3067\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">    SDL_Renderer *renderer;\n    \u30fb\n    \u30fb\n    renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);\n    if( renderer == NULL ) {\n        printf(\"Can not create renderer\\n\");\n        exit(1);\n    }<\/pre>\n\n\n\n<p>\u3000\u3053\u306e\u30ec\u30f3\u30c0\u30e9\u3092\u4f7f\u3063\u3066\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u63cf\u753b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u5857\u308a\u3064\u3076\u3059<\/h2>\n\n\n\n<p>\u3000\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u63cf\u753b\u3059\u308b\u969b\u306f\u3001\u306f\u3058\u3081\u306b\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u63cf\u753b\u8272\u3067\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002\u63cf\u753b\u8272\u306e\u8a2d\u5b9a\u306f\u3001SDL_SetRenderDrawColor() \u95a2\u6570\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5f15\u6570\u306f\u3001\u30ec\u30f3\u30c0\u30e9\u3001r \u5024\u3001g \u5024\u3001b\u5024\u3001\u30a2\u30eb\u30d5\u30a1\u5024\u306b\u306a\u308a\u307e\u3059\u3002\u30a2\u30eb\u30d5\u30a1\u5024\u306f 0 \u301c 255 \u3067\u3059\u304c\u3001\u901a\u5e38\u306f\u3001255 \u3092\u8868\u3059 SDL_ALPHA_OPAQUE \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u63cf\u753b\u8272\u3067\u30af\u30ea\u30a2\u3059\u308b\u306b\u306f\u3001SDL_RenderClear() \u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002\u5f15\u6570\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">    SDL_SetRenderDrawColor(renderer, 0xdf, 0xff, 0xdf, SDL_ALPHA_OPAQUE);\n    SDL_RenderClear(renderer);\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u63cf\u753b\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u53cd\u6620\u3055\u305b\u308b<\/h2>\n\n\n\n<p>\u3000\u63cf\u753b\u306f\u5168\u3066\u3001\u30d0\u30c3\u30d5\u30a1\u3078\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3059\u3002\u305d\u306e\u30d0\u30c3\u30d5\u30a1\u306e\u5185\u5bb9\u3092\u30a6\u30a3\u30f3\u30c9\u30a6\u3078\u53cd\u6620\u3055\u305b\u308b\u306b\u306f\u3001SDL_RenderPresent() \u95a2\u6570\u3092\u4f7f\u3044\u307e\u3059\u3002\u5f15\u6570\u306b\u306f\u30ec\u30f3\u30c0\u30e9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">    SDL_RenderPresent(renderer);<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7<\/h2>\n\n\n\n<p>\u3000\u30a6\u30a3\u30f3\u30c9\u30a6\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u5f62\u306a\u306e\u3067\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7\u304c\u5fc5\u8981\u3067\u3059\u3002\u4eca\u56de\u306f\u3001\u306a\u306b\u304b\u30ad\u30fc\u304c\u62bc\u3055\u308c\u308b\u304b\u3002\u9589\u3058\u308b\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3089\u3001\u7d42\u4e86\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f\u30a4\u30d9\u30f3\u30c8\u306f\u3001SDL_KEYDOWN \u3067\u53d6\u5f97\u3057\u307e\u3059\u3002\u9589\u3058\u308b\u30dc\u30bf\u30f3\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u306b\u306f\u3001SDL_QUIT \u3067\u53d6\u5f97\u3057\u307e\u3059\u3002\u30a4\u30d9\u30f3\u30c8\u306f\u3001SDL_PollEvent() \u95a2\u6570\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002\u5f15\u6570\u306b\u306f\u30a4\u30d9\u30f3\u30c8\u3092\u53d7\u3051\u53d6\u308b\u5909\u6570\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">    int quit_flg = 1;\n    SDL_Event event;\n    \u30fb\n    \u30fb\n    while(quit_flg) {\n        while( SDL_PollEvent(&amp;event) ) {\n            switch (event.type) {\n            case SDL_KEYDOWN:\n            case SDL_QUIT:\n                quit_flg = 0;\n                break;\n            }\n        }\n    }<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d42\u4e86\u51e6\u7406<\/h2>\n\n\n\n<p>\u3000\u4f5c\u6210\u3057\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u3084\u30ec\u30f3\u30c0\u30e9\u3092\u89e3\u653e\u3057\u3001SDL_Qit() \u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">    if (renderer) SDL_DestroyRenderer(renderer);\n    if (window) SDL_DestroyWindow(window);\n\n    SDL_Quit();\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30bd\u30fc\u30b9<\/h2>\n\n\n\n<p>\u3000\u307e\u3068\u3081\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30bd\u30fc\u30b9\u306b\u306a\u308a\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\nint main(int argc, char* argv[]){\n    SDL_Event event;\n    SDL_Window *window;\n    SDL_Renderer *renderer;\n    int quit_flg = 1;\n\n    \/* \u521d\u671f\u5316 *\/\n    if (SDL_Init(SDL_INIT_VIDEO) &lt; 0) {\n        fprintf(stderr, \"SDL_Init(): %s\\n\", SDL_GetError());\n        exit(1);\n    }\n\n    \/* \u30a6\u30a3\u30f3\u30c9\u30a6\u4f5c\u6210 *\/\n    window = SDL_CreateWindow(\"SDL Test\", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 320, 240, 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    \/* \u63cf\u753b *\/\n    SDL_SetRenderDrawColor(renderer, 0xdf, 0xff, 0xdf, SDL_ALPHA_OPAQUE);\n    SDL_RenderClear(renderer);\n    SDL_RenderPresent(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_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<h2 class=\"wp-block-heading\">\u30b3\u30f3\u30d1\u30a4\u30eb<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted console\">$ gcc -O3 -D_REENTRANT -I\/usr\/include\/SDL2 -lSDL2 sdlwindow.c -o sdlwindow<\/pre>\n\n\n\n<p>\u3000\u3044\u3061\u3044\u3061\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u305f\u3073\u306b\u3053\u308c\u3092\u5165\u529b\u3059\u308b\u306e\u306f\u9762\u5012\u306a\u306e\u3067\u3001Makefile \u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">TARGET=sdlwindow\nCFLAGS+=-O3 `pkg-config sdl2 --cflags`\nLDFLAGS+=`pkg-config sdl2 --libs`\n\nall: $(TARGET)\n\n.c.o:\n        $(CC) $(CFLAGS) -c $&lt;\n\n$@: $@.o\n        $(CC) -o $@ $@.o $(LDFLAGS)<\/pre>\n\n\n\n<p>\u3000make \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"324\" height=\"272\" src=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/09\/sdlwindow.png\" alt=\"\" class=\"wp-image-2071\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/09\/sdlwindow.png 324w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/09\/sdlwindow-300x252.png 300w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><figcaption>sdlwindow<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u3000\u5b9f\u884c\u3059\u308c\u3070\u4e0a\u306e\u3088\u3046\u306a\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u306a\u306b\u304b\u30ad\u30fc\u3092\u62bc\u305b\u3070\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000SDL2 \u304c\u308f\u304b\u3063\u3066\u304d\u305f\u306e\u3067\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3059\u3002320 x 240 \u306e\u30b5\u30a4\u30ba\u306b\u3057\u3066\u3001\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30ea\u30b5\u30a4\u30ba\u306f\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002 \u3000\u624b\u9806\u306f\u3001SDL \u3092\u521d\u671f\u5316\u3057\u3066 \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4f5c\u3063\u305f\u3060\u3051\u3067\u306f\u9762\u767d\u304f\u306a [&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-2070","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\/2070","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=2070"}],"version-history":[{"count":3,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2070\/revisions"}],"predecessor-version":[{"id":2262,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2070\/revisions\/2262"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=2070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=2070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=2070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}