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 & HelpIntegration › P5 1.0.3 + Eclipse + OpenGL
Page Index Toggle Pages: 1
P5 1.0.3 + Eclipse + OpenGL (Read 1390 times)
P5 1.0.3 + Eclipse + OpenGL
May 19th, 2009, 12:30am
 
Hi guys, when using eclipse with the new version of processing (the last time I successfully worked with was r.142) I get the following error:

java.lang.RuntimeException: public PGraphicsOpenGL(int width, int height, PApplet parent) does not exist.

I normally set the size with: size(1280, 720, OPENGL);

Is it something changed recently? Which is the new way to set opengl graphics from eclipse?

Thanks, chr
Re: P5 1.0.3 + Eclipse + OpenGL
Reply #1 - May 19th, 2009, 1:03am
 
Looks like it supposes OPENGL constant is of PApplet type? Are you redefining it?
Your syntax should be OK in PDE.
Re: P5 1.0.3 + Eclipse + OpenGL
Reply #2 - May 19th, 2009, 1:36pm
 
Is not size to throw the error, is the constructor which gets called internally.

chr
Re: P5 1.0.3 + Eclipse + OpenGL
Reply #3 - May 19th, 2009, 2:07pm
 
mmm, another small application I tried seems to work :S

will try to find out the reason!

chr
Re: P5 1.0.3 + Eclipse + OpenGL
Reply #4 - May 19th, 2009, 2:23pm
 
Found the issue, the project was referencing another project which was referencing an old version of core.jar, so basically despite in my project I referenced the new one, it was still using the old one :S

Anyway, things sorted, rock on!


Cheers, chr
Page Index Toggle Pages: 1