hint for enabling perspective-corrected lines in P2D is disabled.

This commit is contained in:
codeanticode
2012-05-26 19:27:08 +00:00
parent b57e24e729
commit 289be2c297
@@ -39,20 +39,37 @@ public class PGraphics2D extends PGraphicsOpenGL {
super();
hints[ENABLE_PERSPECTIVE_CORRECTED_LINES] = false;
}
//////////////////////////////////////////////////////////////
// RENDERER SUPPORT QUERIES
public boolean is2D() {
return true;
}
public boolean is3D() {
return false;
}
//////////////////////////////////////////////////////////////
// HINTS
public void hint(int which) {
if (which == ENABLE_PERSPECTIVE_CORRECTED_LINES) {
showWarning("2D lines cannot be perspective-corrected.");
return;
}
super.hint(which);
}
//////////////////////////////////////////////////////////////
// SHAPE