fullscreen api opengl
in
Contributed Library Questions
•
2 years ago
Hello
I have problem with fullscreen api !
To download library it's here :
The fullscreen api doesn't work with opengl !
See easy code :
import fullscreen.*;
import processing.opengl.*;
FullScreen fs;
PImage img;
import processing.opengl.*;
FullScreen fs;
PImage img;
void setup(){
// set size to 640x480
size(640, 480, OPENGL);
// Create the fullscreen object
fs = new FullScreen(this);
// enter fullscreen mode
fs.enter();
}
// set size to 640x480
size(640, 480, OPENGL);
// Create the fullscreen object
fs = new FullScreen(this);
// enter fullscreen mode
fs.enter();
}
void draw(){
background(255);
stroke(0, 127);
line(mouseX, mouseY, random(width), random(height));
}
This code doesn't work because is opengl.
Remove OPENGL into size, and the code work !
What is the solution ?
Are there an other solution ?
Thanks
1