mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
Added ortho(legt, right, top, bottom) function. It uses cameraNear, cameraFar as the near, far values
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user