|
BigScreens / FullScreenHacks
Present Mode in EclipseIn Processing, running a sketch fullscreen was easy. All you needed to do is select "Present Mode." The same is true in Eclipse, you can add the "present" argument to the main function:
static public void main(String args[]) {
PApplet.main(new String[] { "--present","--exclusive","packagepath.YourClassName"});
}
Once this code is added, you can select RUN AS --> APPLICATION. Dual Monitor FullScreenPresent mode will now work at IAC so you don't need to do any of the following! Leaving it here just for documentation purposes
public void init(){
frame.removeNotify();
frame.setUndecorated(true);
frame.addNotify();
super.init();
}
public void setup(){
size(2720,768);
}
This takes off the menu bar. In draw(), you then position the frame at location (0,0) so that it covers the entire screen.
public void draw() {
// Must set the location each time in draw()
frame.setLocation(0,0);
}
You may have to make sure you turn off the dock (on a Mac) or the taskbar (on Windows). Getting rid of the top menu bar (this is only a problem on a Mac)Once you have followed the above steps, you'll have a nice dual-monitor fullscreen Processing application. There's one problem, that nasty top menu bar is still there. To get rid of this, follow these steps:
NOTE TO SELF, INVESTIGATE:
System.setProperty ("apple.awt.fakefullscreen","true"); //removes the menu bar for "soft" fullscreen
System.setProperty ("apple.awt.fullscreencapturealldisplays", "false"); //only goes full screen on one monitor if doing real fullscreen. may not be compatible on some cards.
|