comparison testApp.h @ 15:d5758530a039 tip

oF0.84 Retina, and iPhone support
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Tue, 12 May 2015 15:48:52 +0100
parents 4ba81a12b008
children
comparison
equal deleted inserted replaced
14:4ba81a12b008 15:d5758530a039
1 // oF 072 1 // oF 084
2 // V 1.3sonic
2 3
3 #ifndef _TEST_APP 4 #ifndef _TEST_APP
4 #define _TEST_APP 5 #define _TEST_APP
5 6
6 #include "ofMain.h" 7 #include "ofMain.h"
7 #include "ofxiPhone.h" 8
8 #include "ofxiPhoneExtras.h" 9
9 #include "ofxiPhoneExternalDisplay.h" 10 #include "ofxiOS.h"
10 #include "ofxiPhoneAppDelegate.h" 11 #include "ofxiOSExtras.h"
11 12
12 #include "2dvector.h" 13 #include "2dvector.h"
13 #include "lump.h" 14 #include "lump.h"
14 #include "spring.h" 15 #include "spring.h"
15 #include <iostream> 16 #include <iostream>
34 // defining this compiles it for ios otherwise osx 35 // defining this compiles it for ios otherwise osx
35 #define IPAD 36 #define IPAD
36 37
37 38
38 39
39 class testApp : public ofxiPhoneApp, public ofxiPhoneExternalDisplay, public ofxMidiListener, public ofxMidiConnectionListener { 40 class testApp : public ofxiOSApp, public ofxMidiListener, public ofxMidiConnectionListener {
40 41
41 public: 42 public:
42 int timesOpened; 43 int timesOpened;
43 bool audioOn; 44 bool audioOn;
44 bool drawingOn; 45 bool drawingOn;
78 void touchDoubleTap(ofTouchEventArgs &touch); 79 void touchDoubleTap(ofTouchEventArgs &touch);
79 void addTouch(); 80 void addTouch();
80 void removeTouch(); 81 void removeTouch();
81 82
82 void UIcallBack(int buttID); 83 void UIcallBack(int buttID);
83 84 void showControls();
85 void hideControls();
84 86
85 void keyPressed (int key); 87 void keyPressed (int key);
86 void keyReleased(int key); 88 void keyReleased(int key);
87 void mouseMoved(int x, int y ); 89 void mouseMoved(int x, int y );
88 void mouseDragged(int x, int y, int button); 90 void mouseDragged(int x, int y, int button);