Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : LWJGL Renderer

$
0
0
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.

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:


  1. java.lang.IncompatibleClassChangeError: Expected non-static field processing.lwjgl.PGraphicsLWJGL.pgl
  2. at processing.lwjgl.PGraphicsLWJGL.<init>(PGraphicsLWJGL.java:39)
  3. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  4. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  5. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  6. at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  7. at processing.core.PApplet.makeGraphics(PApplet.java:1804)
  8. at processing.core.PApplet.size(PApplet.java:1656)
  9. at processing.core.PApplet.size(PApplet.java:1627)
  10. at sketch_130617a.setup(sketch_130617a.java:25)
  11. at processing.core.PApplet.handleDraw(PApplet.java:2245)
  12. at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
  13. at processing.core.PApplet.run(PApplet.java:2141)
  14. at java.lang.Thread.run(Thread.java:662)
  15. processing.core.PGraphicsJava2D@7162e295
  16. processing.opengl.PGL@26a3960
  17. processing.core.PGraphicsJava2D@7162e295
  18. processing.opengl.PGL@26a3960

Maybe you have to specify the specific PGL in PGraphicsLWJGL?
pgl = new PGL(this);
>
pgl = new processing.lwjgl.PGL(this);

Viewing all articles
Browse latest Browse all 1768

Trending Articles