move PConstants around a bit, add annotations for overrides, cleaning up unapproved PShape additions

This commit is contained in:
benfry
2012-09-01 18:05:24 +00:00
parent 46e2e90ede
commit 232390c02c
21 changed files with 753 additions and 462 deletions

View File

@@ -27,6 +27,7 @@ import java.util.ArrayList;
import java.util.Hashtable;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.core.PGraphics;
import processing.core.PImage;
import processing.core.PShape;
@@ -257,8 +258,8 @@ public class PGraphics3D extends PGraphicsOpenGL {
static protected PShape3D createShapeImpl(PApplet parent, int type) {
PShape3D shape = null;
if (type == PShape.GROUP) {
shape = new PShape3D(parent, PShape.GROUP);
if (type == PConstants.GROUP) {
shape = new PShape3D(parent, PConstants.GROUP);
} else if (type == PShape.PATH) {
shape = new PShape3D(parent, PShape.PATH);
} else if (type == POINTS) {