a bunch of font work that prolly breaks things too...

This commit is contained in:
benfry
2005-04-16 01:34:10 +00:00
parent 0074759586
commit 9e6e826eaf
7 changed files with 354 additions and 112 deletions

View File

@@ -4026,6 +4026,11 @@ public class PApplet extends Applet
return what & 0xff;
}
/**
* Note that toInt('5') is unlike String in the sense that it
* won't return 5, but the ascii value. This is because ((int) someChar)
* returns the ascii value, and toInt() is just longhand for the cast.
*/
static final public int toInt(char what) {
return what;
}
@@ -5762,6 +5767,12 @@ v PApplet.this.stop();
}
public void ortho() {
if (recorder != null) recorder.ortho();
g.ortho();
}
public void ortho(float left, float right,
float bottom, float top,
float near, float far) {
@@ -5770,6 +5781,12 @@ v PApplet.this.stop();
}
public void perspective() {
if (recorder != null) recorder.perspective();
g.perspective();
}
public void perspective(float fovy, float aspect, float zNear, float zFar) {
if (recorder != null) recorder.perspective(fovy, aspect, zNear, zFar);
g.perspective(fovy, aspect, zNear, zFar);