Skip to content

Instantly share code, notes, and snippets.

@lewkoo
Created January 24, 2014 21:07
Show Gist options
  • Save lewkoo/8606448 to your computer and use it in GitHub Desktop.
Save lewkoo/8606448 to your computer and use it in GitHub Desktop.
OpenFrameworks simple main method
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"
//========================================================================
int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 960, 540, OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp( new testApp());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment