We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › fullscreen api just got better!
Page Index Toggle Pages: 1
fullscreen api just got better! (Read 2759 times)
fullscreen api just got better!
Aug 1st, 2007, 7:31am
 
hey all!


http://www.superduper.org/processing/fullscreen_api/

i've been updating my fullscreen api, it now works with opengl.

you can use it to seemlessly switch between fullscreen/window mode using control+f/apple+f and also to switch resolution.

unfortunately i'm sitting on a mac here, so it's not guaranteed this works in windows (i know using opengl with this api makes the sketch crash in linux).

enjoy,
hansi.
Re: fullscreen api just got better!
Reply #1 - Aug 14th, 2007, 5:41pm
 
Just checked it on windows (XP)

Your example on the site
Runs fullscreen from processing (sometimes buggy)
Exporting and running the .exe crashes the program, for me.

But if I use opengl window management.
The .exe  and example seems to work/run good fullscreen on windows. (on my system)

So for the moment windows users;
Use the opengl screen / option to make your own fullscreen apps with this lib, I guess.

Tuff thing, making multi-platform working code, I know. Hope my tip helped some people.

Code:

import processing.opengl.*;

void setup(){
// set size to 640x480
size( 640, 480, OPENGL );

//rest of code etc....
No real technical updates... :(
Reply #2 - Oct 25th, 2007, 4:54pm
 
No real technical updates, but I changed the fullscreen api to be a proper library.

That means you won't have to copy paste a bunch of files anymore.

It should be very easy to change your code, here's a working example:

import fullscreen.*;

FullScreen fs;

void setup(){
 // set size to 640x480
 size(640, 480);

 // Create the fullscreen object
 fs = new FullScreen(this);
 
 // enter fullscreen mode
 fs.enter();
}


void draw(){
 // draw something
}


As always:
http://www.superduper.org/processing/fullscreen_api/


I still wasn't able to properly handle opengl issues, as well as having a sketch span over multiple monitors. Sorry for that. If anybody has an idea how to solve this please contact me!
Re: fullscreen api just got better!
Reply #3 - Oct 4th, 2008, 5:19pm
 
Hey All!

I feel like i got stuck while trying to get the next version perfect.
This is why I'm releasing version 0.95 now, the new features might have a few bugs, but everything that used to work should still behave nicely.

Ok, so whats new?
+ Another try on the opengl issue : Now updating textures from the init() method called by opengl, let's hope that finally fixes it!

+ SoftFullScreen support, is like a "always on top" window. So you can't change resolution, but you can span across multiple monitors.

+ Shortcuts are still enabled by default, but you can turn them off using disableKeys()  

+ You can list the available resolutions using FullScreen.getResolution( <screen-nr> )

as always... download from
http://www.superduper.org/processing/fullscreen_api/


enjoy, hansi.
Re: fullscreen api just got better!
Reply #4 - Oct 6th, 2008, 11:28pm
 
Hey thanks for that library!

I just tried the new version and seem to get in trouble with SoftFullScreen.

It gives me this error and doesn't work...
Just to let you know

java.lang.NoClassDefFoundError: javax/media/opengl/GLEventListener
at fullscreen.FullScreenBase.<init>(FullScreenBase.java:39)
at fullscreen.SoftFullScreen.<init>(SoftFullScreen.java:81)
at c_dualscreen.setup(c_dualscreen.java:18)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:613)
Re: fullscreen api just got better!
Reply #5 - Oct 8th, 2008, 1:50pm
 
Nixan wrote on Oct 6th, 2008, 11:28pm:
Hey thanks for that library!

I just tried the new version and seem to get in trouble with SoftFullScreen.

It gives me this error and doesn't work...
Just to let you know

java.lang.NoClassDefFoundError: javax/media/opengl/GLEventListener
at fullscreen.FullScreenBase.<init>(FullScreenBase.java:39)
at fullscreen.SoftFullScreen.<init>(SoftFullScreen.java:81)
at c_dualscreen.setup(c_dualscreen.java:18)
at processing.core.PApplet.handleDraw(PApplet.java:1377)
at processing.core.PApplet.run(PApplet.java:1305)
at java.lang.Thread.run(Thread.java:613)


hey!

are you on processing 0148
then i might already know the issue and it should be fixed later today.

hansi.
Re: fullscreen api just got better!
Reply #6 - Oct 13th, 2008, 3:51pm
 
ok, should be fixed:
http://www.superduper.org/processing/fullscreen_api/versions/fullscreen.zip
Page Index Toggle Pages: 1