mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
getting camera() into PGraphics, last of faq stuff, starting 0085
This commit is contained in:
@@ -6054,6 +6054,20 @@ v PApplet.this.stop();
|
||||
}
|
||||
|
||||
|
||||
public void camera() {
|
||||
if (recorder != null) recorder.camera();
|
||||
g.camera();
|
||||
}
|
||||
|
||||
|
||||
public void camera(float eyeX, float eyeY, float eyeZ,
|
||||
float centerX, float centerY, float centerZ,
|
||||
float upX, float upY, float upZ) {
|
||||
if (recorder != null) recorder.camera(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ);
|
||||
g.camera(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ);
|
||||
}
|
||||
|
||||
|
||||
public void ortho() {
|
||||
if (recorder != null) recorder.ortho();
|
||||
g.ortho();
|
||||
|
||||
Reference in New Issue
Block a user