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
// vert | |
#version 150 | |
out vec4 outColor; // this is the ultimate color for this vertex | |
out vec2 outtexcoord; // pass the texCoord if needed | |
out vec3 transformedNormal; |
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
string ofXml::getAttribute(const string& path) const { | |
Poco::XML::Node *e; | |
if(element) { | |
if(path.find("[@") == string::npos) { | |
// we need to create a proper path | |
string attributePath = "[@" + path + "]"; | |
e = element->getNodeByPath(attributePath); |
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 "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/gl/Texture.h" | |
#include "cinder/Capture.h" | |
#include "CinderOpenCV.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; |
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 "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/Capture.h" | |
#include "CinderOpenCV.h" | |
#include "cinder/gl/Texture.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; |
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
uniform sampler2D src_tex_unit0; | |
uniform vec4 globalColor = vec4(1.0); | |
in vec2 texCoordVarying; | |
in vec4 colorVarying; | |
out vec4 fragColor; | |
uniform vec3 lightCenter; | |
uniform float lightRadius; |
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
{ | |
"targets": [ | |
{ | |
"target_name": "keypress", | |
"conditions": [ | |
['OS == "mac"', { | |
'include_dirs': [ | |
'System/Library/Frameworks/CoreFoundation.Framework/Headers', | |
'System/Library/Frameworks/Carbon.Framework/Headers', | |
], |
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
#version 150 | |
in mat4 transformMatrix; | |
in vec4 position; | |
uniform mat4 modelViewProjectionMatrix; | |
void main() | |
{ | |
mat4 mvp = modelViewProjectionMatrix * transformMatrix; |
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
// declaration stays the same | |
ofTexture { | |
private: | |
ofTextureImpl *textureImpl; // raw ptr or ofPtr? | |
public: | |
// all the usual stuff here | |
}; |
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
// might need to check | |
// http://stackoverflow.com/questions/15033363/obtaining-weights-in-cvsvm-the-svm-implementation-of-opencv/15070681#15070681 | |
// for more info on how to get the svm from the CvSVM object to pass to HOG | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <sstream> | |
#include <iomanip> | |
#include <stdexcept> |
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
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=8000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino -I/Users/joshua.noble/code/arduino/hardware/attiny/variants/tiny8 -I/Users/joshua.noble/code/arduino/libraries/IRremote /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/build9164954935591061918.tmp/IRtinyTest.cpp -o /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/build9164954935591061918.tmp/IRtinyTest.cpp.o | |
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Stream.h:26, | |
from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/HardwareSerial.h:28, | |
from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Arduino.h:193, | |
from IRtinyTest.ino:12: |