I probably might be doing something wrong to begin with, but this is what I'm getting. I have LWJGL and the P5LWJGL stuff set up as libraries in the sketchbook. Just tinkering in the PDE.
Maybe you have to specify the specific PGL in PGraphicsLWJGL?
pgl = new PGL(this);
>
pgl = new processing.lwjgl.PGL(this);
import org.lwjgl.LWJGLException; import processing.lwjgl.*; void setup() { try { size(400,400,"processing.lwjgl.PGraphicsLWJGL"); } catch(Throwable ex) {} noLoop(); } void draw() { println(g); println(processing.lwjgl.PGraphicsLWJGL.pgl); }
Running that gives me this:
- java.lang.IncompatibleClassChangeError: Expected non-static field processing.lwjgl.PGraphicsLWJGL.pgl
- at processing.lwjgl.PGraphicsLWJGL.<init>(PGraphicsLWJGL.java:39)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
- at processing.core.PApplet.makeGraphics(PApplet.java:1804)
- at processing.core.PApplet.size(PApplet.java:1656)
- at processing.core.PApplet.size(PApplet.java:1627)
- at sketch_130617a.setup(sketch_130617a.java:25)
- at processing.core.PApplet.handleDraw(PApplet.java:2245)
- at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
- at processing.core.PApplet.run(PApplet.java:2141)
- at java.lang.Thread.run(Thread.java:662)
- processing.core.PGraphicsJava2D@7162e295
- processing.opengl.PGL@26a3960
- processing.core.PGraphicsJava2D@7162e295
- processing.opengl.PGL@26a3960
Maybe you have to specify the specific PGL in PGraphicsLWJGL?
pgl = new PGL(this);
>
pgl = new processing.lwjgl.PGL(this);