This file contains 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
#!/bin/bash | |
ARCH="-arch i386" | |
SDK="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" | |
SDKLIB="-Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" | |
export MACOSX_DEPLOYMENT_TARGET="10.7" | |
export CFLAGS="$ARCH $SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET" |
This file contains 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
/*{ | |
"DESCRIPTION": "BAD_TUNE_TV", | |
"CREDIT": "by satoruhiga", | |
"CATEGORIES": [ | |
"GLSL FX" | |
], | |
"INPUTS": [ | |
{ | |
"NAME": "inputImage", | |
"TYPE": "image" |
This file contains 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" | |
namespace stack_blur { | |
template<class T> struct stack_blur_tables { | |
static uint16_t const g_stack_blur8_mul[255]; | |
static uint8_t const g_stack_blur8_shr[255]; | |
}; | |
//------------------------------------------------------------------------ |
This file contains 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 <chrono> | |
#include <deque> | |
template <typename T> | |
class ofxDelayLineQueue | |
{ | |
public: |
This file contains 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 NoiseCircle | |
{ | |
public: | |
float noise_amt; | |
float noise_speed; |
This file contains 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 "ofxOsc.h" | |
class ofxOscMultiSender | |
{ | |
public: | |
void setup(std::string hostname, int port) | |
{ |
This file contains 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 PixelPreview | |
{ | |
struct Panel | |
{ | |
typedef ofPtr<Panel> Ref; | |
This file contains 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" | |
template <typename T> | |
class TimedomainMedianFilter | |
{ | |
public: | |
TimedomainMedianFilter() : num_frame_buffer(5), current_frame_index(0) {} |
This file contains 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 "testApp.h" | |
ofMesh points; | |
ofEasyCam cam; | |
bool use_perspective_point = true; | |
void enablePerspectivePoint(float size) | |
{ | |
static GLfloat distance[] = { 0.0, 0.0, 1.0 }; | |
glPointParameterfv(GL_POINT_DISTANCE_ATTENUATION, distance); |
This file contains 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 <iconv.h> | |
#include <string> | |
int convert(string input, wstring &output) | |
{ | |
char *inbuf, *iptr, *outbuf, *wptr; | |
iconv_t cd; | |
size_t nconv, inlen, avail; |