processing.core.PConstants in java.class? (eclipse)
in
Programming Questions
•
2 years ago
Hi,
I just switched over from PDE to eclipse and I'm already running into my first problem, which is I'm ashamed to say, pretty basic (I guess?). For the life of me I can't seem to get PConstants to work?
Any of you care to help me out?
- import processing.core.PApplet;
- // No difference if I import processing.core.PConstants;
- public class Image {
- PApplet parent;
- public Image(PApplet parent) {
- this.parent = parent;
- }
- void render() {
- parent.beginShape(QUAD_STRIP); // Does not work.
- parent.vertex(100, 100);
- parent.vertex(100, 200);
- parent.vertex(200, 200);
- parent.vertex(200, 100);
- parent.endShape(2); // Works.
- }
- }
1