Added ortho(legt, right, top, bottom) function. It uses cameraNear, cameraFar as the near, far values

This commit is contained in:
codeanticode
2011-02-28 05:10:16 +00:00
parent 27096a4601
commit 3d18f7aae6
2 changed files with 13 additions and 0 deletions

View File

@@ -9292,6 +9292,13 @@ public class PApplet extends Applet
}
public void ortho(float left, float right,
float bottom, float top) {
if (recorder != null) recorder.ortho(left, right, bottom, top);
g.ortho(left, right, bottom, top);
}
public void ortho(float left, float right,
float bottom, float top,
float near, float far) {

View File

@@ -4143,7 +4143,13 @@ public class PGraphics extends PImage implements PConstants {
showMissingWarning("ortho");
}
public void ortho(float left, float right,
float bottom, float top) {
showMissingWarning("ortho");
}
public void ortho(float left, float right,
float bottom, float top,
float near, float far) {