Skip to content

Commit 36e2192

Browse files
committed
show warning when calling modelX/Y/Z in P2D
1 parent ff9cb8b commit 36e2192

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

core/src/processing/opengl/PGraphics2D.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,31 @@ static protected PShape loadShapeImpl(PGraphics pg,
251251
}
252252

253253

254+
//////////////////////////////////////////////////////////////
255+
256+
// SCREEN TRANSFORMS
257+
258+
259+
@Override
260+
public float modelX(float x, float y, float z) {
261+
showDepthWarning("modelX");
262+
return 0;
263+
}
264+
265+
266+
@Override
267+
public float modelY(float x, float y, float z) {
268+
showDepthWarning("modelY");
269+
return 0;
270+
}
271+
272+
273+
@Override
274+
public float modelZ(float x, float y, float z) {
275+
showDepthWarning("modelZ");
276+
return 0;
277+
}
278+
254279

255280
//////////////////////////////////////////////////////////////
256281

0 commit comments

Comments
 (0)