Permalink
Browse files

Merge branch 'master' of github.com:arturoc/FaceSubstitution

  • Loading branch information...
2 parents cc36204 + d421063 commit 33cf7ae00f11e8c93f42994b74c42c1e2dfc255c @kylemcdonald kylemcdonald committed Nov 1, 2011
View
Oops, something went wrong.
@@ -0,0 +1,2 @@
+ofxOpenCv
+ofxCv
@@ -1,3 +1,4 @@
+#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect src, srcBlur, dstBlur;
void main() {
@@ -0,0 +1,34 @@
+# add custom variables to this file
+
+# OF_ROOT allows to move projects outside apps/* just set this variable to the
+# absoulte path to the OF root folder
+
+OF_ROOT = ../../..
+
+
+# USER_CFLAGS allows to pass custom flags to the compiler
+# for example search paths like:
+# USER_CFLAGS = -I src/objects
+
+USER_CFLAGS =
+
+
+# USER_LDFLAGS allows to pass custom flags to the linker
+# for example libraries like:
+# USER_LD_FLAGS = libs/libawesomelib.a
+
+USER_LDFLAGS =
+
+
+# use this to add system libraries for example:
+# USER_LIBS = -lpango
+
+USER_LIBS =
+
+
+# change this to add different compiler optimizations to your project
+
+USER_COMPILER_OPTIMIZATION = -march=native -mtune=native -Os
+
+
+EXCLUDE_FROM_SOURCE="bin,.xcodeproj,obj,.git"
@@ -3,6 +3,6 @@
int main() {
ofAppGlutWindow window;
- ofSetupOpenGL(&window, 640, 480 * 2, OF_WINDOW);
+ ofSetupOpenGL(&window, 640*2, 480, OF_WINDOW);
ofRunApp(new testApp());
}
@@ -87,17 +87,17 @@ void testApp::draw() {
ofPopMatrix();
ofEnableAlphaBlending();
- dst.draw(0, 480);
+ dst.draw(640, 0);
cloneShader.begin();
cloneShader.setUniformTexture("src", src, 1);
cloneShader.setUniformTexture("srcBlur", srcBlur, 2);
cloneShader.setUniformTexture("dstBlur", dstBlur, 3);
- dst.draw(0, 480);
+ dst.draw(640, 0);
cloneShader.end();
ofDisableAlphaBlending();
drawHighlightString(ofToString((int) ofGetFrameRate()), 10, 20);
}
void testApp::keyPressed(int key) {
-}
+}
Oops, something went wrong.

0 comments on commit 33cf7ae

Please sign in to comment.