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
| // | |
| // ofSnippets.h | |
| // | |
| // Created by shugohirao on 2018/11/01~. | |
| // | |
| /*================================================== | |
| setup | |
| ==================================================*/ | |
| static void loadImg2Tex(ofTexture &tex, string path, float scale=1.0) { |
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
| //-------------------------------------------------------------- | |
| // referrered to ofxSoundObjects | |
| //-------------------------------------------------------------- | |
| ofBuffer makeWavBuffer(const ofSoundBuffer &buff){ | |
| // write a wav header | |
| short myFormat = 1; // for pcm | |
| int mySubChunk1Size = 16; | |
| int bitsPerSample = 16; // assume 16 bit pcm | |
| int myByteRate = buff.getSampleRate() * buff.getNumChannels() * bitsPerSample/8; |
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
| // | |
| // ofBase64.h | |
| // | |
| // Created by shugohirao on 2018/05/09. | |
| // | |
| #pragma once | |
| #include "Poco/Base64Encoder.h" | |
| namespace ofBase64 { |
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 "ofConstants.h" | |
| #include "ofColor.h" | |
| #include "ofPoint.h" | |
| #include "ofMatrix4x4.h" | |
| #include "ofRectangle.h" | |
| #include "ofTypes.h" | |
| /// \cond INTERNAL |
NewerOlder