Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CPUCloning: changed layout to horizontal

  • Loading branch information...
commit 5682e59ee66a11216b25e3b30ca3e8841111a891 1 parent e91f8d4
@arturoc authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  CPUCloning/src/main.cpp
  2. +3 −3 CPUCloning/src/testApp.cpp
View
2  CPUCloning/src/main.cpp
@@ -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());
}
View
6 CPUCloning/src/testApp.cpp
@@ -87,12 +87,12 @@ 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();
@@ -100,4 +100,4 @@ void testApp::draw() {
}
void testApp::keyPressed(int key) {
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.