This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sfInfo.frames = audioDecoder.getNumFrames(); | |
| sfInfo.samplerate = audioDecoder.getSampleRate(); | |
| sfInfo.channels = audioDecoder.getChannels(); | |
| sfInfo.format = SF_FORMAT_WAV; | |
| sfInfo.sections = 1; | |
| sfInfo.seekable = SF_TRUE; | |
| SNDFILE * f = sf_open(ofToDataPath("testies.wav", true).c_str(), SFM_WRITE, &sfInfo); | |
| // int err = sf_error(f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PImage shapes; | |
| void settings() { | |
| size(512, 512); | |
| } | |
| void setup() | |
| { | |
| shapes = loadImage("shapes.png"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <svg | |
| ... | |
| height="512" | |
| width="512"> | |
| ... | |
| <g | |
| transform="translate(0,-161.53332)" | |
| id="layer1"> | |
| <circle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| #include "ofApp.h" | |
| int main() | |
| { | |
| ofSetupOpenGL(512, 512, OF_WINDOW); | |
| ofRunApp(new ofApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| #include "ofApp.h" | |
| int main() | |
| { | |
| ofSetupOpenGL(1920, 1080, OF_WINDOW); | |
| ofRunApp(new ofApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| #include "ofApp.h" | |
| int main() | |
| { | |
| ofSetupOpenGL(1280, 720, OF_WINDOW); | |
| ofRunApp(new ofApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| #include "ofApp.h" | |
| int main() | |
| { | |
| ofSetupOpenGL(1280, 720, OF_WINDOW); | |
| ofRunApp(new ofApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofMain.h" | |
| #include "ofApp.h" | |
| int main() | |
| { | |
| ofSetupOpenGL(640, 480, OF_WINDOW); | |
| ofRunApp(new ofApp()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofApp.h" | |
| void ofApp::setup() | |
| { | |
| //ofSetLogLevel(OF_LOG_VERBOSE); | |
| //ofSetLogLevel(OF_LOG_NOTICE); // default | |
| ofSetLogLevel(OF_LOG_WARNING); | |
| //ofSetLogLevel(OF_LOG_ERROR); | |
| //ofSetLogLevel(OF_LOG_FATAL_ERROR); | |
| //ofSetLogLevel(OF_LOG_SILENT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "ofMain.h" | |
| class ofApp : public ofBaseApp | |
| { | |
| public: | |
| void setup(); | |
| void update(); | |
| void draw(); |
OlderNewer