gazy wrote on Oct 8th, 2008, 1:54pm:Hey what do you mean by " classic (not the soft) mode"
Right now I literally change the OS preferences to 640*480 and run my sketch (which is in a window just bigger than 640*480) so it appears fullscreen.
But what I want is for the sketch to jump into a 640*480 resolution, like for example Quake does when you run it, ie if you were to see the mouse pointer it would be huge because of the resolution switch. Im sure you could do this in JAVA2D, and Im hoping theres some way still... half the reason is 640*480 is faster and you dont need to cover as much of the screen etc, and the other half is that my app was hardcoded for 640*480, i could fix this and have it use fulscreen in any res but Im assuming it would slow right down on very high resolution desktops.
yep, that should be possible. the shortest way to do it is this piece of code:
import fullscreen.*;
FullScreen fs;
void setup(){
size( 640, 480 );
// Create the fullscreen object
fs = new FullScreen(this);
fs.setResolution( 640, 480 ); // let's assume your screen does that resolution
}
void draw(){
// draw stuff
}
now you can just press alt+enter/ctrl+f/apple+f (depending on your platform) and the resolution should change.
this is called the classic fullscreen (or fullscreen exclusive) mode, because it will disable the second monitor (if you have one), also there will be no other windows visible, even if your sketch doesn't cover the entire screen and your app should have slightly more system resources available.
on the other hand there is what i call the "soft" fullscreen mode, which is basically just a giant window sitting in front of all the others, but the desktop is still behind your app. (in exclusive mode everything but your app disappears). you should only use it when you have a dualscreen sketch.
if you install the library into your sketchpath/libraries/ folder you should have a few examples when you fire up processing and choose file > sketches > libraries > fullscreen from the menubar.
best, hansi.