Created
July 3, 2020 06:18
-
-
Save n1ckfg/83abfe3cfe8a765b74586b1e99c7df37 to your computer and use it in GitHub Desktop.
Raspberry Pi GLFW window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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