Skip to content

Instantly share code, notes, and snippets.

#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main(){
ofGLESWindowSettings settings;
settings.setGLESVersion(2);
ofCreateWindow(settings);
ofRunApp(new ofApp);
- channel from ofLog
- padding from ofLog
- nanosThen from ofFpsCounter
- secsThen from ofFpsCounter
- _mutexBlocks from ofThread
- _threadRunning from ofThread
- threadBeingWaitedFor from ofThread
- prevValue from ofParameter::Value
- document from ofXml
- element from ofXml
- line to ofBuffer::RLine
- _current to ofBuffer::RLine
- _rbegin to ofBuffer::RLine
- _rend to ofBuffer::RLine
- _rbegin to ofBuffer::RLines
- _rend to ofBuffer::RLines
- token to ofEventListener
- listeners to ofEventListeners
- seconds to ofTime
- nanoseconds to ofTime
- ofBuffer(const string &text) from ofBuffer
- void setReadOnly(bool readable=true) from ofFile
- void setReadOnly(bool readable=true) from ofDirectory
- ~ofThread() from ofThread
- Poco::Thread * getCurrentPocoThread() from ofThread
- Poco::Thread & getPocoThread() from ofThread
- const Poco::Thread & getPocoThread() from ofThread
- bool isMainThread() from ofThread
- ostream & operator<<(size_t n) from ofColor_
- istream & operator>>(size_t n) from ofColor_
- RLine(vector< char >::reverse_iterator _begin, vector< char >::reverse_iterator _end) to ofBuffer::RLine
- const string & operator*() to ofBuffer::RLine
- const string * operator->() to ofBuffer::RLine
- const string & asString() to ofBuffer::RLine
- ofBuffer::RLine & operator++() to ofBuffer::RLine
- ofBuffer::RLine operator++(int ) to ofBuffer::RLine
- bool operator!=(const ofBuffer::RLine &rhs) to ofBuffer::RLine
- bool operator==(const ofBuffer::RLine &rhs) to ofBuffer::RLine
- bool empty() to ofBuffer::RLine
- ofBuffer::RLine rbegin() to ofBuffer::Lines
matrix:
#VisualStudio 2017 64 bit Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
TARGET: vs
VS_VER: 15
VS_NAME: 2017
ARCH: 64
#VisualStudio 2017 32 bit Building
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main(){
ofGLFWWindowSettings settings;
settings.setGLVersion(3,3);
ofCreateWindow(settings);
ofRunApp(new ofApp);
}
float m = 0;
float Q = 1.;
float a = 1.12;
vFragColor = asinh(a * Q * (color - m)) / Q;
int main(){
ofGLFWWindowSettings settings;
settings.decorated = false;
ofCreateWindow(settings);
ofRunApp(new ofApp);
}
listeners.push_back(m_bExportFrames.newListener([this](bool & record){
if(record){
auto path = ofSystemLoadDialog("Record to images:", true);
if(path.bSuccess){
auto folderPath = path.getPath();
ofxTextureRecorder::Settings settings(fbo.getTexture());
settings.imageFormat = OF_IMAGE_FORMAT_JPEG;
settings.folderPath = folderPath;
recorder.setup(settings);
}else{