Wanted to request a feature in the project generator! Would it be possible to add an option to setup the the main.cpp with openGL settings? I keep having to go and alter it everytime I want to mess with shaders
do you mean adding support for openg3+ pipeline from PG itself?
yes! basically having the option to setup main.cpp with
#include "ofMain.h"
#include "ofApp.h"
int main( ){
ofGLFWWindowSettings settings;
settings.setGLVersion(3, 2); //we define the OpenGL version we want to use
settings.width = 1024;
settings.height = 768;
ofCreateWindow(settings);
// this kicks off the running of my app
ofRunApp(new ofApp());
}
instead of
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768, 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 ofApp());
}