mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02: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();
|
||||
|
||||
@@ -2073,6 +2073,16 @@ public class PGraphics extends PImage implements PConstants {
|
||||
depthError("endCamera");
|
||||
}
|
||||
|
||||
public void camera() {
|
||||
depthError("camera");
|
||||
}
|
||||
|
||||
public void camera(float eyeX, float eyeY, float eyeZ,
|
||||
float centerX, float centerY, float centerZ,
|
||||
float upX, float upY, float upZ) {
|
||||
depthError("camera");
|
||||
}
|
||||
|
||||
public void ortho() {
|
||||
depthError("ortho");
|
||||
}
|
||||
@@ -2106,7 +2116,6 @@ public class PGraphics extends PImage implements PConstants {
|
||||
depthError("printCamera");
|
||||
}
|
||||
|
||||
|
||||
public void printProjection() {
|
||||
depthError("printCamera");
|
||||
}
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
0084 core
|
||||
X fixed create font / incremented font file version number
|
||||
X simon lighting fixes
|
||||
X added simon's lighting docs to lights() fxn in javadoc
|
||||
X set default stroke cap as ROUND
|
||||
X otherwise smooth() makes points disappear
|
||||
X hack for text with a z coordinate
|
||||
|
||||
|
||||
0083 core
|
||||
X fix double key events
|
||||
X fix mrj.version security error on the pc
|
||||
|
||||
Reference in New Issue
Block a user