ofxGlobalContextのちょっと違うやつ
Forks
Forks pushed to more recently than asaiyuta/ofxGlobalContext2 itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxGlobalContext2
Helper to use the context with singletonsDescription
If you use a class that has a specific function (update ...) as a public member via this helper, call that function by assigning that function to an arbitrary timingCorresponding function
setup(only when calling setup) update(timing changeable) beforeUpdate(fixed timing) afterUpdate(fixed timing) beforeDraw(fixed timing) afterDraw(fixed timing)Example
# use class
~~~ class Data{ ... void setup(){ hogehoge... }void update(){ hogehoge... } void afterUpdate(){ hogehoge... } ... }; ~~~
ofxAddons