Timer functions (ofxSetTimeout and ofxSetInterval) like JavaScript for openframeworks
TODO
- if your system can use Blocks, then you can use blocks type is ^(){}.
- if your system can use C++11 lambda, then you can use lambda type is std::function<void(void)> .
- but, i only tested in LLVM clang.
- and of0.8 in Xcode, if we use -std=c++11 then maybe we will get error at "ofTypes.h"…
- let's show openframeworks/openFrameworks#2335
- if you will get error with other environment, let's try to edit the block of #if __has_feature(cxx_lambdas) in "ofxTimerSystemConfig.h".
In the function of timer, DON'T call GL function. (System will crash probably!!)
MIT License.
- ISHII 2bit [bufferRenaiss co., ltd.]
- ishii[at]buffer-renaiss.com
Please create new issue, if there is a problem. And please throw pull request, if you have a cool idea!!