| 14 | #include "ofxLua.h" |
| 15 | |
| 16 | class ofApp : public ofBaseApp, ofxLuaListener { |
| 17 | |
| 18 | public: |
| 19 | |
| 20 | // main |
| 21 | void setup(); |
| 22 | void update(); |
| 23 | void draw(); |
| 24 | void exit(); |
| 25 | |
| 26 | // input |
| 27 | void keyPressed(int key); |
| 28 | void mouseMoved(int x, int y); |
| 29 | void mouseDragged(int x, int y, int button); |
| 30 | void mousePressed(int x, int y, int button); |
| 31 | void mouseReleased(int x, int y, int button); |
| 32 | void windowResized(int w, int h); |
| 33 | void dragEvent(ofDragInfo dragInfo); |
| 34 | |
| 35 | // ofxLua error callback |
| 36 | void errorReceived(std::string &msg); |
| 37 | |
| 38 | // script control |
| 39 | void loadScript(std::string &script); |
| 40 | void reloadScript(); |
| 41 | void nextScript(); |
| 42 | void prevScript(); |
| 43 | |
| 44 | ofxLua lua; |
| 45 | vector<std::string> scripts; |
| 46 | size_t currentScript; |
| 47 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected