MCPcopy Create free account
hub / github.com/danomatika/ofxLua / ofApp

Class ofApp

luaExampleIOS/src/ofApp.h:23–62  ·  view source on GitHub ↗

this example app is designed for an iPad in landscape mode, in the project settings Deployment Info set the following: Devices: iPad Device Orientation: disable Portrait and Upside Down

Source from the content-addressed store, hash-verified

21// * Devices: iPad
22// * Device Orientation: disable Portrait and Upside Down
23class ofApp : public ofxiOSApp, ofxLuaListener {
24
25 public:
26
27 // main
28 void setup();
29 void update();
30 void draw();
31 void exit();
32
33 // input
34 void mouseMoved(int x, int y);
35 void mouseDragged(int x, int y, int button);
36 void mousePressed(int x, int y, int button);
37 void mouseReleased(int x, int y, int button);
38
39 void touchDown(ofTouchEventArgs &touch);
40 void touchMoved(ofTouchEventArgs &touch);
41 void touchUp(ofTouchEventArgs &touch);
42 void touchDoubleTap(ofTouchEventArgs &touch);
43 void touchCancelled(ofTouchEventArgs &touch);
44
45 void lostFocus();
46 void gotFocus();
47 void gotMemoryWarning();
48 void deviceOrientationChanged(int newOrientation);
49
50 // ofxLua error callback
51 void errorReceived(string& msg);
52
53 // script control
54 void reloadScript();
55 void nextScript();
56 void prevScript();
57
58 ofxLua lua;
59 vector<string> scripts;
60 int currentScript;
61 long doubleTapTimestamp;
62};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected