perspective correction can be disabled/enabled for points

This commit is contained in:
codeanticode
2012-08-30 21:32:57 +00:00
parent c788566b60
commit 2acd81befe
5 changed files with 72 additions and 33 deletions

View File

@@ -36,7 +36,7 @@ public class PGraphics2D extends PGraphicsOpenGL {
public PGraphics2D() {
super();
hints[ENABLE_PERSPECTIVE_CORRECTED_LINES] = false;
hints[ENABLE_PERSPECTIVE_CORRECTED_STROKE] = false;
}
@@ -61,7 +61,7 @@ public class PGraphics2D extends PGraphicsOpenGL {
public void hint(int which) {
if (which == ENABLE_PERSPECTIVE_CORRECTED_LINES) {
if (which == ENABLE_PERSPECTIVE_CORRECTED_STROKE) {
showWarning("2D lines cannot be perspective-corrected.");
return;
}