show warning when calling modelX/Y/Z in P2D, fixes #4813

This commit is contained in:
codeanticode
2017-01-09 08:49:31 -05:00
parent 20d716009c
commit 043eaa96c2
@@ -251,6 +251,31 @@ public class PGraphics2D extends PGraphicsOpenGL {
}
//////////////////////////////////////////////////////////////
// SCREEN TRANSFORMS
@Override
public float modelX(float x, float y, float z) {
showDepthWarning("modelX");
return 0;
}
@Override
public float modelY(float x, float y, float z) {
showDepthWarning("modelY");
return 0;
}
@Override
public float modelZ(float x, float y, float z) {
showDepthWarning("modelZ");
return 0;
}
//////////////////////////////////////////////////////////////