Skip to content

Instantly share code, notes, and snippets.

@n1ckfg
Created July 3, 2020 06:18
Show Gist options
  • Select an option

  • Save n1ckfg/83abfe3cfe8a765b74586b1e99c7df37 to your computer and use it in GitHub Desktop.

Select an option

Save n1ckfg/83abfe3cfe8a765b74586b1e99c7df37 to your computer and use it in GitHub Desktop.
Raspberry Pi GLFW window
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main() {
ofGLFWWindowSettings settings;
settings.glesVersion = 2;
settings.windowMode = OF_FULLSCREEN;
settings.numSamples = 0;
ofCreateWindow(settings); // <-------- 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 ofApp());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment