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
// Records a local webcam feed and converts the recording to SWF. | |
import flash.display.BitmapData; | |
import flash.display.Bitmap; | |
import flash.display.Loader; | |
import flash.events.Event; | |
import flash.events.MouseEvent; | |
import flash.geom.Rectangle; | |
import flash.media.Camera; | |
import flash.media.Video; |
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
int fileID = 0; | |
vector<string> fileNames; | |
string fileExtension = "pex"; | |
// | |
ofDirectory dir = ofToDataPath("", true); | |
dir.listDir(); | |
vector<ofFile> files = dir.getFiles(); | |
for(int i=0; i<files.size(); i++) |
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 "ofGraphics.h" | |
#include "ofImage.h" | |
class ofGlobalListener { | |
public: | |
ofGlobalListener(); | |
virtual void globalMouseDown(float x, float y) = 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
#ifndef ROXLU_BINNING_2DH | |
#define ROXLU_BINNING_2DH | |
#include <math.h> | |
#include <vector> | |
using std::vector; | |
/* |
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
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
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/sh | |
# PCL version 1.5.1 | |
# Boost 1.49 | |
# Eigen 6e7488e20373 | |
# Flann 1.7.1 | |
# QHull 2012.1 | |
# VTK 5.10.0 | |
d=${PWD} | |
bd=${PWD}/build |
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 "LightRays.h" | |
#include <roxlu/opengl/Error.h> | |
LightRays::LightRays() | |
:w(0) | |
,h(0) | |
,tex(0) | |
,fbo(0) | |
,depth_buffer(0) | |
,frag_shader(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
// This makes relative paths work in C++ in Xcode by changing directory to the Resources folder inside the .app bundle | |
// this way you can include your images in the copy phase of the project and don't have to rely on a data/ folder for distribution | |
#ifdef TARGET_OSX | |
ofDisableDataPath(); | |
CFBundleRef mainBundle = CFBundleGetMainBundle(); | |
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); | |
char path[PATH_MAX]; | |
CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX); | |
CFRelease(resourcesURL); |
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
#ifndef PI | |
# define PI 3.14159265358979 | |
#endif | |
inline float easeInBack(float t) { | |
float s = 1.70158f; | |
return t*t*((s+1)*t - s); | |
} | |
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 "RainbowArc.h" | |
RainbowArc::RainbowArc(VerticesPT& vertices) | |
:radius(100) | |
,width(5) | |
,fg_start_dx(0) | |
,fg_num_vertices(0) | |
,bg_start_dx(0) | |
,bg_num_vertices(0) | |
,vertices(vertices) |
OlderNewer