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

Class ofApp

luaExample/src/ofApp.h:16–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "ofxLua.h"
15
16class 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected