Skip to content

Instantly share code, notes, and snippets.

@microcosm
Created November 6, 2014 14:32
Show Gist options
  • Save microcosm/73c85ecf61b7f8b324a1 to your computer and use it in GitHub Desktop.
Save microcosm/73c85ecf61b7f8b324a1 to your computer and use it in GitHub Desktop.
multi monitors test
#include "ofMain.h"
#include "ofApp.h"
#include "ofAppGLFWWindow.h"
int main( ){
ofAppGLFWWindow window;
window.setMultiDisplayFullscreen(true);
ofSetupOpenGL(&window,1024,768,OF_FULLSCREEN);
ofRunApp(new ofApp());
}
void ofApp::draw(){
ofBackground(ofColor::black);
for(int i = 0; i < ofGetWidth(); i=i+50) {
for(int j = 0; j < ofGetHeight(); j=j+50) {
ofDrawBitmapString("test", ofPoint(i, j));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment