getting camera() into PGraphics, last of faq stuff, starting 0085

This commit is contained in:
benfry
2005-04-19 06:46:55 +00:00
parent 7fb6e41a30
commit 03f4b8a8c3
6 changed files with 101 additions and 69 deletions
+14
View File
@@ -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();
+10 -1
View File
@@ -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");
}
+9
View File
@@ -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