Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

openFrameworks入門 - 多摩美メディアアートII

9,119 views

Published on

Published in: Technology, Business
  • Be the first to comment

openFrameworks入門 - 多摩美メディアアートII

  1. 1. ‣
  2. 2. ‣‣‣‣
  3. 3. ‣‣
  4. 4. ‣‣‣ http://www.creativeapplications.net/category/openframeworks/
  5. 5. ‣‣ http://www.openframeworks.cc/download‣
  6. 6. ‣‣‣ Mac OSX - XCode‣ Windows - Code::Blocks Visual Studio 2010‣ Linux - Code::Blocks
  7. 7. ‣‣‣ http://developer.apple.com/programs/register/
  8. 8. ‣‣‣‣‣‣
  9. 9. ‣‣‣‣‣
  10. 10.
  11. 11. ‣‣‣‣‣
  12. 12. ‣‣‣ ‣‣‣
  13. 13.
  14. 14.
  15. 15.
  16. 16.
  17. 17. ‣ ‣‣ ‣
  18. 18. ‣‣‣‣‣‣
  19. 19. #pragma once#include "ofMain.h"#include "ofxiPhone.h"#include "ofxiPhoneExtras.h"class testApp : public ofxiPhoneApp {!public:! void setup();! void update();! void draw();! void exit();!! void touchDown(ofTouchEventArgs &touch);! void touchMoved(ofTouchEventArgs &touch);! void touchUp(ofTouchEventArgs &touch);! void touchDoubleTap(ofTouchEventArgs &touch);! void lostFocus();! void gotFocus();! void gotMemoryWarning();! void deviceOrientationChanged(int newOrientation);
  20. 20. #pragma once#include "ofMain.h"#include "ofxiPhone.h"#include "ofxiPhoneExtras.h"class testApp : public ofxiPhoneApp {!public:! void setup();! void update();! void draw();! void exit();!! void touchDown(ofTouchEventArgs &touch);! void touchMoved(ofTouchEventArgs &touch);! void touchUp(ofTouchEventArgs &touch);! void touchDoubleTap(ofTouchEventArgs &touch);! void lostFocus();! void gotFocus();! void gotMemoryWarning();! void deviceOrientationChanged(int newOrientation);
  21. 21. #pragma once#include "ofMain.h"#include "ofxiPhone.h"#include "ofxiPhoneExtras.h"class testApp : public ofxiPhoneApp {!public:! void setup();! void update();! void draw();! void exit();!! void touchDown(ofTouchEventArgs &touch);! void touchMoved(ofTouchEventArgs &touch);! void touchUp(ofTouchEventArgs &touch);! void touchDoubleTap(ofTouchEventArgs &touch);! void lostFocus();! void gotFocus();! void gotMemoryWarning();! void deviceOrientationChanged(int newOrientation);
  22. 22. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){}//--------------------------------------------------------------void testApp::keyPressed(int key){}//--------------------------------------------------------------void testApp::keyReleased(int key){}//--------- ---------
  23. 23. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){}//--------------------------------------------------------------void testApp::keyPressed(int key){}//--------------------------------------------------------------void testApp::keyReleased(int key){}//--------- ---------
  24. 24. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){}//--------------------------------------------------------------void testApp::keyPressed(int key){}//--------------------------------------------------------------void testApp::keyReleased(int key){}//--------- ---------
  25. 25. ‣‣
  26. 26.
  27. 27. ‣‣‣‣ ‣
  28. 28. < >//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){ ofCircle(512, 384, 200); Text}//--------------------------------------------------------------void testApp::exit(){}< >
  29. 29.
  30. 30. ‣‣‣‣
  31. 31. ‣‣‣
  32. 32. ‣‣‣ ‣ ‣ ‣‣ ‣
  33. 33. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){ ofSetColor(0, 127, 255, 200); ofCircle(412, 384, 200); ofSetColor(255, 127, 0, 200); ofCircle(612, 384, 200);}< >
  34. 34.
  35. 35. ‣‣ ofEnableAlphaBlending();‣ ofSetCircleResolution( );‣ ofBackground(R, G, B);
  36. 36. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){! ofEnableAlphaBlending();! ofSetCircleResolution(64);! ofBackground(0, 0, 0);}//--------------------------------------------------------------void testApp::update(){!}//--------------------------------------------------------------void testApp::draw(){ ofSetColor(0, 127, 255, 200); ofCircle(412, 384, 200); ofSetColor(255, 127, 0, 200); ofCircle(612, 384, 200);!}< >
  37. 37. ‣‣‣ http://www.openframeworks.cc/documentation
  38. 38. ‣‣‣‣‣ http://www.openframeworks.cc/documentation?detail=ofGraphics‣

×