{"id":25,"date":"2015-08-13T17:49:16","date_gmt":"2015-08-13T08:49:16","guid":{"rendered":"http:\/\/tamatoyaku.com\/blog\/?p=75"},"modified":"2015-08-13T17:49:16","modified_gmt":"2015-08-13T08:49:16","slug":"25","status":"publish","type":"post","link":"https:\/\/p-0.me\/b\/p\/25\/","title":{"rendered":"openFrameworks\u3092\u89e6\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u590f\u4f11\u307f\u306b\u306a\u308a\u307e\u3057\u305f.<br \/>\n\u4eca\u5e74\u306e\u590f\u4f11\u307f\u306f\u52c9\u5f37\u4f1a\u3068\u304b\u8272\u3005\u884c\u3053\u3046\u3068\u601d\u3063\u3066\u308b\u3093\u3060\u3051\u3069,\u305d\u306e\u4e2d\u306e\u4e00\u3064\u306b<a href=\"https:\/\/ccss.lab.sugimototatsuo.com\/2015\/\">\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30fb\u30b9\u30af\u30fc\u30eb<\/a>\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b.<br \/>\n\u3056\u3063\u304f\u308a\u8a00\u3046\u3068,\u672d\u5e4c\u5e02\u7acb\u5927\u5b66\u306e\u672d\u5e4c\u30b5\u30c6\u30e9\u30a4\u30c8\u30ad\u30e3\u30f3\u30d1\u30b9\u3067\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f53\u9a13\u3059\u308b\u3068\u3044\u3046\u3082\u306e.<br \/>\n\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u3044\u3063\u3066\u3082,openFrameworks\u3060\u3051\u3067\u306f\u306a\u304f\u3066,Processing\u3084Web Audio API\u3068\u304b\u3082\u3084\u308b.\u884c\u304b\u306a\u3044\u3051\u3069.<br \/>\n\u3042\u3068,\u305d\u308c\u3068\u306f\u5225\u306b\u8af8\u4e8b\u60c5\u3067C++\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u3063\u3066,\u305d\u306e\u305f\u3081\u306bC++\u3092\u5b66\u3076\u5fc5\u8981\u304c\u3042\u3063\u305f.<br \/>\n<!--more--><br \/>\n\u307e\u3042,\u305d\u3093\u306a\u308f\u3051\u3067openFrameworks\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u3063\u305f.<br \/>\n\u307e\u305a\u6700\u521d\u306f\u74b0\u5883\u69cb\u7bc9.<br \/>\n\u3053\u306e\u524dVisual Studio 2015\u304cDream Spark\u306b\u5165\u3063\u305f\u306e\u3067,(\u7279\u306b\u610f\u5473\u306f\u7121\u3044\u304c)Enterprise\u7248\u3092\u5165\u308c\u305f.<br \/>\n\u6b21\u306b<a href=\"https:\/\/openframeworks.jp\/\">openFrameworks<\/a>\u304b\u3089\u9069\u5f53\u306bDownload\u3057\u3066Examples\u3092\u52d5\u304b\u305d\u3046\u3068\u3057\u305f.<br \/>\n\u3057\u304b\u3057,\u9069\u5f53\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3084\u3064\u306fVisual Studio 2012\u7528\u3067,\u52d5\u304b\u306a\u304b\u3063\u305f.<br \/>\n\u4ed5\u65b9\u306a\u3044\u304b\u3089GitHub\u304b\u3089\u6700\u65b0\u7248\u3092\u843d\u3068\u3057,\u300c&#8230;openFrameworks-masterscriptsvstemplateemptyExample.sln\u300d\u3092\u4f7f\u3046\u3053\u3068\u3067\u7121\u4e8b\u306b\u52d5\u3044\u305f.<br \/>\n\u3053\u3053\u3067,\u30de\u30a4\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eVisual Studio 2015\/Projects\u306b\u3055\u3063\u304d\u306etemplate\u3092\u30b3\u30d4\u30da\u3057\u3066\u8d77\u52d5\u3057\u305f.<br \/>\n\u4f55\u6545\u304b\u52d5\u304b\u306a\u3044.\u3069\u3046\u3082\u76f8\u5bfe\u30d1\u30b9\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u30c0\u30e1\u3063\u307d\u3044..sln\u3068.vcxproj\u306e\u4e2d\u306e\u76f8\u5bfe\u30d1\u30b9\u3092\u7d76\u5bfe\u30d1\u30b9\u306b\u66f8\u304d\u306a\u304a\u3057\u3066\u8d77\u52d5\u3057\u305f\u3089\u52d5\u3044\u305f.<br \/>\n&nbsp;<br \/>\n\u3088\u3046\u3084\u304f\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f.<br \/>\n\u3053\u306e\u524d\u5922\u3067\u898b\u305f\u30a4\u30e1\u30fc\u30b8\u304c\u307e\u3060\u982d\u306b\u6b8b\u3063\u3066\u3044\u305f\u306e\u3067,\u305d\u308c\u3092\u63cf\u3044\u3066\u307f\u308b.<br \/>\n\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304f\u3068,\u81ea\u5206\u3067\u8ffd\u52a0\u3057\u305f\u30d5\u30a1\u30a4\u30eb(.h,.cpp)\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u308f\u304b\u3063\u305f.<br \/>\n\u30d1\u30b9\u3092\u901a\u3057\u305f\u308a\u8272\u3005\u3057\u305f\u3051\u3069,\u5206\u304b\u3089\u306a\u304f\u3066,\u3042\u307e\u308a\u7dba\u9e97\u3067\u306f\u306a\u3044\u3051\u3069,.vcxproj\u306e\u4e2d\u8eab\u3092\u5c11\u3057\u8ffd\u52a0\u3057\u305f.<br \/>\n\u8272\u3005\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3067\u304d\u305f\u306e\u304c\u3053\u308c.<br \/>\n\u30b3\u30fc\u30c9\u306f<a href=\"https:\/\/github.com\/pome1618\/ofHeart\/\">\u3053\u3061\u3089<\/a><br \/>\n\u203b\u30d1\u30b9\u3068\u304b.vcxproj\u306e\u30d1\u30b9\u90e8\u5206\u3068\u304b\u66f8\u304d\u63db\u3048\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u3068\u601d\u3046.\u3042\u3068VS2015\u3067.<br \/>\n&nbsp;<br \/>\n<a href=\"https:\/\/tamatoyaku.com\/blog\/wp-content\/uploads\/2015\/08\/result.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-77\" src=\"https:\/\/tamatoyaku.com\/blog\/wp-content\/uploads\/2015\/08\/result.gif\" alt=\"result\" width=\"1024\" height=\"768\" \/><\/a><br \/>\n&nbsp;<br \/>\n\u7121\u4e8b\u306b\u52d5\u304b\u3059\u3053\u3068\u304c\u3067\u304d\u305f\u3057,\u3053\u308c\u3092blog\u306b\u8f09\u305b\u3088\u3046\u3068\u601d\u3063\u305f.<br \/>\n\u3067,\u8f09\u305b\u308b\u305f\u3081\u306b\u306f\u3069\u3046\u3059\u308b\u304b.js\u306b\u5909\u63db\u3059\u308b\u306e\u3082\u3059\u3063\u3054\u3044\u52b9\u7387\u60aa\u3044\u3057,gif\u5f62\u5f0f\u3067\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306b\u3057\u305f.<br \/>\ngif\u5f62\u5f0f\u3067\u4fdd\u5b58\u3059\u308b\u306b\u306fofxGifEncoder\u3092\u4f7f\u3048\u3070\u826f\u3044\u3089\u3057\u3044.<br \/>\n\u30d1\u30b9\u3092\u901a\u3057\u3066\u4f7f\u3063\u3066\u307f\u308b\u304c,ofxGifEncoder.cpp\u306eLine51\u3068Line56\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b.<br \/>\nimg.w\u3068img.h\u306fprotected\u3060\u304b\u3089\u30c0\u30e1\u30fc,\u3068\u3044\u3046\u5185\u5bb9\u3060\u3063\u305f.\u305d\u308c\u305e\u308cgetWidth()\u3068getHeight()\u3067\u66f8\u304d\u306a\u304a\u3057\u305f.<br \/>\n\u3082\u3046\u4e00\u3064,img.bpp\u306fprotected\u3060\u304b\u3089\u30c0\u30e1\u30fc\u3068\u8a00\u308f\u308c\u305f.img.bpp\u306fimg.getPixelsRef().getBitsPerPixel()\u306b\u66f8\u304d\u306a\u304a\u3057\u305f.<br \/>\n(\u5408\u3063\u3066\u308b\u304b\u3069\u3046\u304b\u306f\u77e5\u3089\u306a\u3044.\u52d5\u3044\u305f\u304b\u3089\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u3044\u3044\u3084.)<br \/>\n\u305d\u306e\u5f8cofxGifEncoder\u306b\u3064\u3044\u3066\u304d\u305fexample\u3092\u5143\u306b\u3057\u3066gif\u306b\u4fdd\u5b58\u3057\u305f.<br \/>\n\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u6539\u826f\u3057\u305f\u3084\u3064\u306e\u30b3\u30fc\u30c9\u304c<a href=\"https:\/\/github.com\/pome1618\/ofHeart_gif\/\">\u3053\u3061\u3089<\/a><br \/>\n\u203b\u30d1\u30b9\u3068\u304b.vcxproj\u306e\u30d1\u30b9\u90e8\u5206\u3068\u304b\u66f8\u304d\u63db\u3048\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u3068\u601d\u3046.\u3042\u3068VS2015\u3067.<br \/>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u590f\u4f11\u307f\u306b\u306a\u308a\u307e\u3057\u305f. \u4eca\u5e74\u306e\u590f\u4f11\u307f\u306f\u52c9\u5f37\u4f1a\u3068\u304b\u8272\u3005\u884c\u3053\u3046\u3068\u601d\u3063\u3066\u308b\u3093\u3060\u3051\u3069,\u305d\u306e\u4e2d\u306e\u4e00\u3064\u306b\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30fb\u30b9\u30af\u30fc\u30eb\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b. \u3056\u3063\u304f\u308a\u8a00\u3046\u3068,\u672d\u5e4c\u5e02\u7acb\u5927\u5b66\u306e\u672d\u5e4c\u30b5\u30c6\u30e9\u30a4\u30c8\u30ad\u30e3\u30f3\u30d1\u30b9\u3067\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u30fb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":0,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-0.me\/b\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}