I have a simple question which I surprisingly cannot find an answer for anywhere:
How do I make my app fullscreen on the second monitor on windows? I have a projector connected to my computer and want to make it display my of app fullscreen on it.
#include "ofMain.h"
#include "ofApp.h"
#include "ofAppGLFWWindow.h"
//========================================================================
int main( ){
//tweak window settings
ofGLFWWindowSettings settings;
settings.setSize(1024, 768);
settings.monitor = 1; //set it to use the second monitor
//settings.setPosition(glm::vec2(1920,0)); //if the above doesn't work try this line instead
settings.windowMode = OF_FULLSCREEN;
//make the window
auto mainWindow = ofCreateWindow(settings);
//run the app
shared_ptr<ofApp> mainApp(new ofApp);
ofRunApp(mainWindow, mainApp);
ofRunMainLoop();
}
Hi theo, sorry for the slow reply, just coming back to this project now.
I tried that and different combinations of setPosition, monitor settings etc but nothing works?
I did manage to get the window fullscreen on the projector using this code, but it still has the taskbar at the bottom. If I set the taskbar to autohide then there is still a grey line…
this is the main.cpp