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 & HelpPrograms › Full screen // was::Resize window
Page Index Toggle Pages: 1
Full screen // was::Resize window ? (Read 436 times)
Full screen // was::Resize window ?
Jul 2nd, 2008, 3:26pm
 
Hola !

I am new to Processing (but an old java coder) and just wrote a very nice sketch with it. I plan to share it soon.  

I want the rendering window to be at a different size every time, according to the size of the projector I will be using for each performance. How can I do this without changing all the pixel dimensions in my code ? (it draw two images and one rectangle...)  

Of course, using OpenGL would normally solve this, as all dimensions would be vectors, but in Processing this is not quite easy to do, as all the the OpenGL dimensions are in pixels too... Plus, using OpenGL might make the app a lot slower than drawing pixels directly in a pixel buffer. (the window)  

Now, should I simply do some simple maths on the dimensions of every element in the window ?  

Also, I would like the window to appear in "full screen" : with no border.

Thanks for any help.  

a
Full screen // was:: Re: Resize window ?
Reply #1 - Jul 3rd, 2008, 3:06pm
 
Hi again,
I renamed my title to "Full screen", since, really, this is what I want my app to be.

I guess the way to go is to use OpenGL and to do the same than in the example "3D and OpenGL/OpenGL/FullScreenApp" ?

a
Page Index Toggle Pages: 1