iPhoneã«openFrameworksã移æ¤ãã人ãç»å ´
openFrameworksã¨ããC++åãã®ãã«ãã¡ãã£ã¢ã©ã¤ãã©ãªã移æ¤ããæ¹ãç»å ´ãã¾ããã
移æ¤ããæ¹ã®ãµã¤ãã¯ãã¡ã
Developing for iPhone using openFrameworks and ofxiPhone | memo.tv
http://www.memo.tv/ofxiphone
移æ¤å ã®æ¬å®¶ã®ãµã¤ãã¯ãã¡ã
openFrameworks
http://www.openframeworks.cc/
ã¡ãªã¿ã«openFrameworksã¨ã¯C++åãã®ãã«ããã©ãããã©ã¼ã åãã®ã¢ã¼ãç³»(ãã«ãã¡ãã£ã¢)ã©ã¤ãã©ãªã§ãã
ãã¡ãã®ãµã¤ãã«ããã¨ãProcessing(ã¾ãã¯proce55ing)ã®è¨è¨ã«å½±é¿ãåããC++ãã¬ã¼ã ã¯ã¼ã¯ãã¨ã®ãã¨ã§ãã
openFrameworksãã¡ãã£ã¨ããã£ã¦ã¿ã - gnarlãæè¡ã¡ã¢
http://d.hatena.ne.jp/gnarl/20070503/1178119448
ãã«ãæ¹æ³ã¯ãã¡ãã®ãµã¤ããåããæãã§ãã
Jeff Crouse » Archive » openFrameworks on iPhone
http://www.jeffcrouse.info/uncategorized/openframeworks-on-iphone/
â»svnããé¢é£ã½ã¼ã¹ãè½ã¨ãããã¨ã«こちらのサイトããã©ã¤ãã©ãªãDLããlibsãã©ã«ãã«è§£åããå¿ è¦ãããã®ã«æ³¨æãã¦ä¸ãã(ãã¡ãã«ã¤ãã¦ãä¸è¨ãµã¤ãã«è¨è¼ãããã¾ã)ã
èªåãDLãããã¼ã¸ã§ã³ã§ã¯ãã«ãããã¨ä»¥ä¸ã®ã¨ã©ã¼ãçºçãã¾ããã
error: cannot allocate an object of abstract type 'testApp' note: because the following virtual functions are pure within 'testApp': note: virtual void ofxMultiTouchListener::touchDown(float, float, int, ofxMultiTouchCustomData*) note: virtual void ofxMultiTouchListener::touchMoved(float, float, int, ofxMultiTouchCustomData*) note: virtual void ofxMultiTouchListener::touchUp(float, float, int, ofxMultiTouchCustomData*) note: virtual void ofxMultiTouchListener::touchDoubleTap(float, float, int, ofxMultiTouchCustomData*)
ãã¡ãä»®æ³é¢æ°ãå®ç¾©ããã¦ããªãçºã«çºçãã¦ããã¨ã©ã¼ã§ãã
å®éã«ã¯å®ç¾©ããã¦ããå¼æ°ãç°ãªãããã«çµå±ã¯å®ç¾©ããã¦ãªãæ±ãã«ãªã£ã¦ãã¾ã£ã¦ããããã§ãã
該å½ã®é¢æ°(ã¡ã½ãã)ãæ¤ç´¢ããä¿®æ£ãè¡ãã¾ããããã§ã¯ä¾ã¨ã㦠touchDown() ã«ã¤ãã¦èª¬æãã¾ãã
確èªããã¨ä»¥ä¸ã®æ§ãªå®£è¨ã¨å®è£ ã¨ãªã£ã¦ãããä»®æ³é¢æ°ã®å®£è¨ã¨ç°ãªã x 㨠y ã®åã int ã§ãããã¨ã確èªã§ãã¾ãã
testApp.h
void touchDown(int x, int y, int touchId, ofxMultiTouchCustomData *data = NULL);
testApp.cpp
void testApp::touchDown(int x, int y, int touchId, ofxMultiTouchCustomData *data){
ããã以ä¸ã®æ§ã« float ã«ä¿®æ£ã
testApp.h
void touchDown(float x, float y, int touchId, ofxMultiTouchCustomData *data = NULL);
testApp.cpp
void testApp::touchDown(float x, float y, int touchId, ofxMultiTouchCustomData *data){
ãµã³ãã«ã¨ãã¦ã以ä¸ã®æ§ãªãã®ãå ¥ã£ã¦ã¾ããã
ãç»åå¦çã
ãæåã«é¢ããå¦çã
ãå é度ã»ã³ãµã¼ã使ã£ã¦åã移åã