Skip to content

Instantly share code, notes, and snippets.

@roxlu

roxlu/main.cpp Secret

Last active December 23, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roxlu/683baf3cae7a1889044c to your computer and use it in GitHub Desktop.
Save roxlu/683baf3cae7a1889044c to your computer and use it in GitHub Desktop.
openFrameworks turn on multi sampling on Mac
#include "testApp.h"
#include "ofAppGlutWindow.h"
//--------------------------------------------------------------
int main(){
ofAppGlutWindow window; // create a window
window.setGlutDisplayString("rgba double depth>=16 samples~8 profile=32");
ofSetupOpenGL(&window, 1024, 768, OF_WINDOW);
ofSetFrameRate(60);
ofRunApp(new testApp()); // start the app
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment