Hey, I'm trying to draw an FBO in fullscreen but it is not working as expecting. I'm on Linux(ubuntu) and I'm using the last OF master.
This is the code of the main.cpp file
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofGLFWWindowSettings settings;
settings.setGLVersion(3, 2);
// settings.setSize(1480, 920);
settings.windowMode = OF_FULLSCREEN;
ofCreateWindow(settings);
ofRunApp(new ofApp());
}
And this is the ofApp.cpp
void ofApp::setup(){
// finalFbo was declared in the header file as ofFbo
ofSetVerticalSync(true);
//FBO
cout << "FULLSCREEN" << endl;
cout << ofGetWidth() << endl; // this print 1024
finalFbo.allocate(ofGetWidth(), ofGetHeight(), GL_RGBA);
finalFbo.begin();
ofClear(0, 0, 0, 0);
finalFbo.end();
}
void ofApp::draw(){
// fullfill the FBO
finalFbo.begin();
ofClear(0, 0, 0, 255);
myClass.draw();
finalFbo.end();
// draw the FBO
ofSetColor(255);
finalFbo.draw(0, 0);
}
The result is that the window goes fullscreen, but not the content.
While trying to fix this, I've substitute OF_FULLSCREEN with OF_GAME_MODE
settings.windowMode = OF_GAME_MODE;
When the setupt function is called, this line
cout << ofGetWidth() << endl;
prints 1850
And the screen is still cutted
In both case, resolution looks good and the window appears without decorations.
Any idea? should I open an issue on github?