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 › PGraphics in Eclipse
Page Index Toggle Pages: 1
PGraphics in Eclipse (Read 653 times)
PGraphics in Eclipse
Apr 2nd, 2009, 1:32pm
 
Hi there,

i have a small problem, i want to create a PGraphic within a class which is not the main PApplet, the problem is the usual way:

Code:
PGraphics blah;
blah = parent.createGraphics(width, height, "P3D");


gives me this error: You need to use "Import Library" to add P3D to your sketch.

is there any way to create a PGraphic somewhere else than in the main PApplet?

Ghley
Page Index Toggle Pages: 1